Apache OpenOffice (AOO) Bugzilla – Issue 116136
Writer file closes unsaved after File|Send|Outline to presentation
Last modified: 2017-05-20 10:30:58 UTC
Steps to reproduce: - new writer document - add some headers (heading 1, 2, etc) - File|Send|Outline to presentation New presentation opens - close presentation Question for saving or not (choise does not matter here) - close writer document > closed directly, without Question for saving or not Expected is the question for saving or not. (same problem in 3.2.1 (maybe earlier, didn't try that), so no regression)
confirmed on Solaris Sparc with OOo 3.3.0 at least on Solaris Sparc: after choosing "File - Send - Outline to Presentation" the Save icon is grayed-out and the "*" indicator in the statusbar is also not shown, although the modified Writer document is not saved. So, the user cannot see and may not know that there are still changes to save @mav: please have a look
Adjusting the target.
It seems that the culprit is that the "modified" flag of the Writer document is reset when the outline is exported to rtf. The simplest fix could be to prevent the change: case FN_OUTLINE_TO_CLIPBOARD: case FN_OUTLINE_TO_IMPRESS: { sal_Bool bEnabled = IsEnableSetModified(); EnableSetModified(sal_False); WriterRef xWrt; ::GetRTFWriter( 'O', String(), xWrt ); SvMemoryStream *pStrm = new SvMemoryStream(); pStrm->SetBufferSize( 16348 ); SwWriter aWrt( *pStrm, *GetDoc() ); ErrCode eErr = aWrt.Write( xWrt ); // etc. etc. EnableSetModified(bEnabled); Or something like that. Oliver, do you agree?
Fixed in the proposed way in cws os151 in http://hg.services.openoffice.org/cws/os151/rev/9275efc533e9
MRU->OS: I think, it was not your intention to reassign this issue to "writerneedsconfirm"... F*** default option "reset assignee to default"... ;-)
reassigned to mru for verification
Verified fix in CWS os151.