diff options
author | Tomaž Vajngerl <quikee@gmail.com> | 2012-07-01 19:17:39 +0200 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2012-07-01 19:31:10 +0200 |
commit | 160f62dff2f040ceaf306819d0c67fb111037b2d (patch) | |
tree | 35b616d14dc1afa597f6d8e8d87ab8cfcc5ef504 /sw | |
parent | b9c376111b7ed3137d7ff72286888e7373487142 (diff) |
Svx and sw code cleanup
Change-Id: Ie93861f32ac23379dc1f0fd973612645e776cc1e
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/ui/docvw/romenu.cxx | 2 | ||||
-rw-r--r-- | sw/source/ui/shells/grfsh.cxx | 5 |
2 files changed, 2 insertions, 5 deletions
diff --git a/sw/source/ui/docvw/romenu.cxx b/sw/source/ui/docvw/romenu.cxx index 607145c93d56..e0e519ab1ae9 100644 --- a/sw/source/ui/docvw/romenu.cxx +++ b/sw/source/ui/docvw/romenu.cxx @@ -79,7 +79,7 @@ void SwReadOnlyPopup::Check( sal_uInt16 nMID, sal_uInt16 nSID, SfxDispatcher &rD _pItem->ISA(SfxBoolItem) && ((SfxBoolItem*)_pItem)->GetValue()); //remove full screen entry when not in full screen mode - if(SID_WIN_FULLSCREEN == nSID && !IsItemChecked(SID_WIN_FULLSCREEN) ) + if( SID_WIN_FULLSCREEN == nSID && !IsItemChecked(SID_WIN_FULLSCREEN) ) EnableItem(nMID, sal_False); } } diff --git a/sw/source/ui/shells/grfsh.cxx b/sw/source/ui/shells/grfsh.cxx index 984568c9469b..2e9884cb3520 100644 --- a/sw/source/ui/shells/grfsh.cxx +++ b/sw/source/ui/shells/grfsh.cxx @@ -555,13 +555,10 @@ void SwGrfShell::GetAttrState(SfxItemSet &rSet) bDisable = sal_True; break; case SID_SAVE_GRAPHIC: - if( rSh.GetGraphicType() == GRAPHIC_NONE ) - bDisable = sal_True; - break; case SID_EXTERNAL_EDIT: if( rSh.GetGraphicType() == GRAPHIC_NONE ) bDisable = sal_True; - break; + break; case SID_COLOR_SETTINGS: { if ( bParentCntProt || !bIsGrfCntnt ) |