summaryrefslogtreecommitdiff
path: root/sd/source/ui/func/futempl.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sd/source/ui/func/futempl.cxx')
-rw-r--r--sd/source/ui/func/futempl.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sd/source/ui/func/futempl.cxx b/sd/source/ui/func/futempl.cxx
index d670c706f182..07580a6cef03 100644
--- a/sd/source/ui/func/futempl.cxx
+++ b/sd/source/ui/func/futempl.cxx
@@ -250,12 +250,12 @@ void FuTemplate::DoExecute( SfxRequest& rReq )
case SID_STYLE_WATERCAN:
{
- if( !SD_MOD()->GetWaterCan() )
+ if (SdModule* mod = SdModule::get(); !mod->GetWaterCan())
{
if (pArgs && pArgs->GetItemState( nSId ) == SfxItemState::SET)
{
aStyleName = static_cast<const SfxStringItem &>( pArgs->Get( nSId ) ).GetValue();
- SD_MOD()->SetWaterCan( true );
+ mod->SetWaterCan(true);
pStyleSheet = pSSPool->Find( aStyleName, nFamily);
}
// no presentation object templates, they are only allowed implicitly
@@ -269,11 +269,11 @@ void FuTemplate::DoExecute( SfxRequest& rReq )
}
else
- SD_MOD()->SetWaterCan( false );
+ mod->SetWaterCan(false);
}
else
{
- SD_MOD()->SetWaterCan( false );
+ mod->SetWaterCan(false);
// we have to re-enable to tools-bar
mpViewShell->Invalidate();
}