summaryrefslogtreecommitdiff
path: root/sw/source/ui/shells/mediash.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/ui/shells/mediash.cxx')
-rw-r--r--sw/source/ui/shells/mediash.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/ui/shells/mediash.cxx b/sw/source/ui/shells/mediash.cxx
index 9321c5db7bc8..f43c62429c47 100644
--- a/sw/source/ui/shells/mediash.cxx
+++ b/sw/source/ui/shells/mediash.cxx
@@ -166,10 +166,10 @@ void SwMediaShell::GetMediaState(SfxItemSet &rSet)
{
SwWrtShell& rSh = GetShell();
SdrView* pView = rSh.GetDrawView();
- bool bDisable = true;
if( pView )
{
+ bool bDisable = true;
SdrMarkList* pMarkList = new SdrMarkList( pView->GetMarkedObjectList() );
if( 1 == pMarkList->GetMarkCount() )