diff options
author | Rüdiger Timm <rt@openoffice.org> | 2008-07-14 08:53:35 +0000 |
---|---|---|
committer | Rüdiger Timm <rt@openoffice.org> | 2008-07-14 08:53:35 +0000 |
commit | de93d4f438fe37a997784570df1ad0d245bfee52 (patch) | |
tree | a5806b7a5d97159d5d8557f6999538d7c26b4f11 /sd/source/ui/toolpanel | |
parent | e38afd720c35af69363b5d9d9202e4a6c4ab03f8 (diff) |
#i91583# Patch by af.
Diffstat (limited to 'sd/source/ui/toolpanel')
-rw-r--r-- | sd/source/ui/toolpanel/LayoutMenu.cxx | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/sd/source/ui/toolpanel/LayoutMenu.cxx b/sd/source/ui/toolpanel/LayoutMenu.cxx index 928af0b40023..26309ca287bc 100644 --- a/sd/source/ui/toolpanel/LayoutMenu.cxx +++ b/sd/source/ui/toolpanel/LayoutMenu.cxx @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: LayoutMenu.cxx,v $ - * $Revision: 1.26 $ + * $Revision: 1.27 $ * * This file is part of OpenOffice.org. * @@ -546,12 +546,13 @@ void LayoutMenu::InsertPageWithLayout (AutoLayout aLayout) // Call SID_INSERTPAGE with the right arguments. This is because // the popup menu can not call this slot with arguments directly. SfxRequest aRequest (CreateRequest(SID_INSERTPAGE, aLayout)); - pDispatcher->Execute( + if (aRequest.GetArgs() != NULL) + { + pDispatcher->Execute( SID_INSERTPAGE, SFX_CALLMODE_ASYNCHRON | SFX_CALLMODE_RECORD, - aRequest.GetArgs() != NULL - ? *aRequest.GetArgs() - : pViewShell->GetPool()); + *aRequest.GetArgs()); + } UpdateSelection(); } |