diff options
-rw-r--r-- | basctl/source/basicide/basides1.cxx | 6 | ||||
-rw-r--r-- | sw/source/ui/app/docsh.cxx | 2 |
2 files changed, 3 insertions, 5 deletions
diff --git a/basctl/source/basicide/basides1.cxx b/basctl/source/basicide/basides1.cxx index 260181224f94..6a5cd1332c10 100644 --- a/basctl/source/basicide/basides1.cxx +++ b/basctl/source/basicide/basides1.cxx @@ -929,7 +929,6 @@ void BasicIDEShell::GetState(SfxItemSet &rSet) break; case SID_DOC_MODIFIED: { - String aModifiedMarker; sal_Bool bModified = sal_False; if ( pCurWin ) @@ -943,10 +942,7 @@ void BasicIDEShell::GetState(SfxItemSet &rSet) } } - if ( bModified ) - aModifiedMarker = '*'; - - SfxStringItem aItem( SID_DOC_MODIFIED, aModifiedMarker ); + SfxBoolItem aItem(SID_DOC_MODIFIED, bModified); rSet.Put( aItem ); } break; diff --git a/sw/source/ui/app/docsh.cxx b/sw/source/ui/app/docsh.cxx index 793b912e0217..ba82104c545e 100644 --- a/sw/source/ui/app/docsh.cxx +++ b/sw/source/ui/app/docsh.cxx @@ -379,6 +379,8 @@ sal_Bool SwDocShell::Save() SfxViewFrame* pFrm = pWrtShell ? pWrtShell->GetView().GetViewFrame() : 0; if( pFrm ) { + //TODO: this is probably wrong: we should have a SfxBoolItem here, is + //this intended to set the state to modified ? or not modified ? pFrm->GetBindings().SetState( SfxStringItem( SID_DOC_MODIFIED, ' ' )); } return !IsError( nErr ); |