Apache OpenOffice (AOO) Bugzilla – Issue 38126
HTML document or Help document modified after load
Last modified: 2013-08-07 14:41:36 UTC
- open a HTML document or start the Help --> document is modified.
fix in progress in cws swqbugfixes10. regression, broken by fix for issue 35836
fixed in cws swqbugfixes10 - changed file: /sw/source/ui/app/docsh2.cxx, 1.69.4.1
*** Issue 38291 has been marked as a duplicate of this issue. ***
As agreed with OD and HI raising Prio to '1' to get this fix into beta. Already talked to AK and TZ that this one should be fixed on *m65*.
Impact: ======= each time a new Help content is loaded the "File modified - Save changes?" dialog pops up. Therefor promoted to 'P1'.
reopen, because this defect has to be fixed directly for SRC680m65
patch to fix this defect in method <SwDocShell::Notify(..)>, file /sw/source/ui/app/docsh2.cxx, based on revision 1.69 of this file: @@ -396,7 +396,11 @@ } else if( rHint.ISA(SfxEventHint) && ((SfxEventHint&) rHint).GetEventId() == SFX_EVENT_LOADFINISHED ) - nAction = 1; + { + // --> OD 2004-11-30 #i38126# - own action id + nAction = 3; + // <-- + } if( nAction ) { @@ -416,6 +420,22 @@ case 2: pDoc->GetSysFldType( RES_FILENAMEFLD )->UpdateFlds(); break; + // --> OD 2004-11-30 #i38126# - own action for event LOADFINISHED + // in order to avoid a modified document. + // Perform the same as for action id 1, but disable <SetModified>. + case 3: + { + const bool bResetModified = IsEnableSetModified(); + if ( bResetModified ) + EnableSetModified( FALSE ); + + pDoc->DocInfoChgd( GetDocInfo() ); + + if ( bResetModified ) + EnableSetModified( TRUE ); + } + break; + // <-- } if( pWrtShell )
fixed on head for SRC680m65 - changed file: /sw/source/ui/app/docsh2.cxx, 1.70 OD->HI: Please verify on master SRC680m65
.
correct dependence
Verified on m654_8847 = ok
correct dependenca again