Commits

os  committed 9275efc

os151: #i116136# prevent reset of 'modified' flag while sending to outline or clipboard

  • Participants
  • Parent commits 1517793

Comments (0)

Files changed (1)

File sw/source/ui/app/docsh2.cxx

 		case FN_OUTLINE_TO_CLIPBOARD:
 		case FN_OUTLINE_TO_IMPRESS:
 			{
+				sal_Bool bEnable = IsEnableSetModified();
+				EnableSetModified( sal_False );
 				WriterRef xWrt;
                 // mba: looks as if relative URLs don't make sense here
                 ::GetRTFWriter( 'O', String(), xWrt );
 				pStrm->SetBufferSize( 16348 );
 				SwWriter aWrt( *pStrm, *GetDoc() );
 				ErrCode eErr = aWrt.Write( xWrt );
+				EnableSetModified( bEnable );
 				if( !ERRCODE_TOERROR( eErr ) )
 				{
 					pStrm->Seek( STREAM_SEEK_TO_END );