summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorZdibák Zoltán <zdibakzoltan@gmail.com>2018-10-13 14:42:12 +0200
committerTamás Zolnai <tamas.zolnai@collabora.com>2018-10-16 20:45:04 +0200
commite57ab1b338af12a85166859b9f5e5b958300f867 (patch)
tree945d2969330d5f05634d967d9e8b2f96893c031c /sd
parent189d8ade3ca69c4eb313bdfc25182dc81b5d06e8 (diff)
Narrowed variableScope
Change-Id: Ic3284266a021e3fe17bf99a64e75c0d5a7e662d7 Reviewed-on: https://gerrit.libreoffice.org/61739 Tested-by: Jenkins Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/unoidl/unomodel.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sd/source/ui/unoidl/unomodel.cxx b/sd/source/ui/unoidl/unomodel.cxx
index 05d9af5ca483..898eeda69772 100644
--- a/sd/source/ui/unoidl/unomodel.cxx
+++ b/sd/source/ui/unoidl/unomodel.cxx
@@ -3228,8 +3228,6 @@ void SAL_CALL SdMasterPagesAccess::remove( const uno::Reference< drawing::XDrawP
if( nullptr == mpModel || mpModel->mpDoc == nullptr )
throw lang::DisposedException();
- SdDrawDocument& rDoc = *mpModel->mpDoc;
-
SdMasterPage* pSdPage = SdMasterPage::getImplementation( xPage );
if(pSdPage == nullptr)
return;
@@ -3246,6 +3244,8 @@ void SAL_CALL SdMasterPagesAccess::remove( const uno::Reference< drawing::XDrawP
{
sal_uInt16 nPage = pPage->GetPageNum();
+ SdDrawDocument& rDoc = *mpModel->mpDoc;
+
SdPage* pNotesPage = static_cast< SdPage* >( rDoc.GetMasterPage( nPage+1 ) );
bool bUndo = rDoc.IsUndoEnabled();