Apache OpenOffice (AOO) Bugzilla – Issue 22340
sfx2 - set title to nothing doesn't update window title ...
Last modified: 2004-03-19 08:22:02 UTC
Trivial bug; not obvious which component to file 'graphics' bugs against: Index: sfx2/source/doc/objmisc.cxx =================================================================== RCS file: /cvs/framework/sfx2/source/doc/objmisc.cxx,v retrieving revision 1.33 diff -u -p -u -r1.33 objmisc.cxx --- sfx2/source/doc/objmisc.cxx 28 Jul 2003 12:34:17 -0000 1.33 +++ sfx2/source/doc/objmisc.cxx 11 Nov 2003 11:08:15 -0000 @@ -270,8 +270,7 @@ void SfxObjectShell::FlushDocInfo() // 2. Titel in DocInfo leer (Briefumschlagsdruck) // => nicht am Doc setzen, da sonst "unbenanntX" daraus wird String aDocInfoTitle = GetDocInfo().GetTitle(); - if ( aDocInfoTitle.Len() ) - SetTitle( aDocInfoTitle ); + SetTitle( aDocInfoTitle ); } //-------------------------------------------------------------------------
sfx is part of the framework project. so I'm forwarding the issue to Matthias. However the comment right above your changes stresses on not to set an empty title since an empty title will be automaticely replaced by "Untitled1".
TM->MBA: Please have a look, thanks !
.
The patch is not applicable, because as Christoph already stated, calling SetTitle() here would set the title to "UnitledX". Instead of this the notification about a possible TitleChange needs to be done.
Oops, seems that I was fooled by the old comment. Obviously the automatism is not present anymore, so the patch from Michael is indeed applicable.
Sorry, I was right the first time. The patch from Michael does not work if the document is an "UntitledX". After setting and removing a title it is now named "Untitled". So the bug needs to be fixed a little bit differently.
To verify do the following: Load a document Set a title ("File-Properties") The title is shown in the windows' caption bar Set title to empty string File name should be visible again Then repeat the same with an untitled document.
ATR: checked in cws dialogdiet, bug is fixed.
ATR: Checked again in src680_m30, bug is fixed.