From cb6ced50c11ea71e5655c46e49f17f3b5921f526 Mon Sep 17 00:00:00 2001
From: Maxim Monastirsky <momonasmon@gmail.com>
Date: Sun, 23 Nov 2014 10:19:40 +0200
Subject: fdo#86546 Open the right tab for more bullets and numbering

Change-Id: Ib8dda6eab89c92fa9bea98e3570896ea02692585
---
 sd/source/ui/func/fuolbull.cxx | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

(limited to 'sd')

diff --git a/sd/source/ui/func/fuolbull.cxx b/sd/source/ui/func/fuolbull.cxx
index aa19030e00b3..9888738c46ba 100644
--- a/sd/source/ui/func/fuolbull.cxx
+++ b/sd/source/ui/func/fuolbull.cxx
@@ -68,8 +68,9 @@ void FuOutlineBullet::DoExecute( SfxRequest& rReq )
     }
 
     const SfxItemSet* pArgs = rReq.GetArgs();
+    SFX_ITEMSET_ARG( pArgs, pPageItem, SfxStringItem, FN_PARAM_1, false );
 
-    if( !pArgs )
+    if ( !pArgs || pPageItem )
     {
         // fill ItemSet for Dialog
         SfxItemSet aEditAttr( mpDoc->GetPool() );
@@ -84,6 +85,8 @@ void FuOutlineBullet::DoExecute( SfxRequest& rReq )
         boost::scoped_ptr<SfxAbstractTabDialog> pDlg(pFact ? pFact->CreateSdOutlineBulletTabDlg( NULL, &aNewAttr, mpView ) : 0);
         if( pDlg )
         {
+            if ( pPageItem )
+                pDlg->SetCurPageId( OUStringToOString( pPageItem->GetValue(), RTL_TEXTENCODING_UTF8 ) );
             sal_uInt16 nResult = pDlg->Execute();
 
             switch( nResult )
-- 
cgit