summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorZolnai Tamás <zolnaitamas2000@gmail.com>2015-04-21 15:28:36 +0200
committerZolnai Tamás <zolnaitamas2000@gmail.com>2015-04-22 01:06:39 +0200
commitbadec7478035008f514e0976a94438fe2e32dc40 (patch)
tree7df28d7c7edcbf06867ac13936e4b8355e407f1c /sw
parent636c5a63d67b52b0d2f9f21a863c45eca6ac9ff7 (diff)
tdf#90766: Table - keep with paragraph setting is broken
Modify input set before dialog is created Change-Id: I66d9ed5c07fcdfe4841d071be9b5252aa925b987
Diffstat (limited to 'sw')
-rw-r--r--sw/source/uibase/shells/tabsh.cxx19
1 files changed, 11 insertions, 8 deletions
diff --git a/sw/source/uibase/shells/tabsh.cxx b/sw/source/uibase/shells/tabsh.cxx
index 888bf213cbfa..0631eced063e 100644
--- a/sw/source/uibase/shells/tabsh.cxx
+++ b/sw/source/uibase/shells/tabsh.cxx
@@ -562,6 +562,16 @@ void SwTableShell::Execute(SfxRequest &rReq)
FieldUnit eMetric = ::GetDfltMetric(0 != PTR_CAST(SwWebView, &rSh.GetView()));
SW_MOD()->PutItem(SfxUInt16Item(SID_ATTR_METRIC, static_cast< sal_uInt16 >(eMetric)));
boost::scoped_ptr<SwTableRep> pTblRep(::lcl_TableParamToItemSet( aCoreSet, rSh ));
+
+ aCoreSet.Put(SfxUInt16Item(SID_HTML_MODE, ::GetHtmlMode(GetView().GetDocShell())));
+ rSh.GetTblAttr(aCoreSet);
+ // GetTblAttr overwrites the background!
+ SvxBrushItem aBrush( RES_BACKGROUND );
+ if(rSh.GetBoxBackground(aBrush))
+ aCoreSet.Put( aBrush );
+ else
+ aCoreSet.InvalidateItem( RES_BACKGROUND );
+
boost::scoped_ptr<SfxAbstractTabDialog> pDlg;
{
SwAbstractDialogFactory* pFact = SwAbstractDialogFactory::Create();
@@ -573,14 +583,7 @@ void SwTableShell::Execute(SfxRequest &rReq)
if (pItem)
pDlg->SetCurPageId(OUStringToOString(static_cast<const SfxStringItem *>(pItem)->GetValue(), RTL_TEXTENCODING_UTF8));
}
- aCoreSet.Put(SfxUInt16Item(SID_HTML_MODE, ::GetHtmlMode(GetView().GetDocShell())));
- rSh.GetTblAttr(aCoreSet);
- // GetTblAttr overwrites the background!
- SvxBrushItem aBrush( RES_BACKGROUND );
- if(rSh.GetBoxBackground(aBrush))
- aCoreSet.Put( aBrush );
- else
- aCoreSet.InvalidateItem( RES_BACKGROUND );
+
if ( (!pDlg && rReq.GetArgs()) || (pDlg && pDlg->Execute() == RET_OK) )
{