diff options
author | David Tardon <dtardon@redhat.com> | 2013-06-03 14:22:07 +0200 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2013-11-05 10:59:14 +0100 |
commit | 753e8814239a5b6a2493d012c50989d09830a3e6 (patch) | |
tree | e981cc071881d54fad26fe2abf3f8bc947409139 /svx | |
parent | 37415b92b3c124f01439bdc69974dd843c09f351 (diff) |
copy values from the original item set
... because SfxAbstractDialog::GetOutputItemSet() only contains the
items that have been _changed_ in the dialog.
Change-Id: Iaf20bb42b65e420fe4e7aff979378eff7b5e5df2
(cherry picked from commit 9cd71f996e3625e8174c46bf85e336c1ee90df7f)
Change-Id: I9100dbe05c418a9dd1b819534a08076c9a4aed1c
Reviewed-on: https://gerrit.libreoffice.org/4145
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/table/tablecontroller.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/svx/source/table/tablecontroller.cxx b/svx/source/table/tablecontroller.cxx index 93686759c087..16a2c2cceb8d 100644 --- a/svx/source/table/tablecontroller.cxx +++ b/svx/source/table/tablecontroller.cxx @@ -726,7 +726,8 @@ void SvxTableController::onFormatTable( SfxRequest& rReq ) std::auto_ptr< SfxAbstractTabDialog > pDlg( pFact ? pFact->CreateSvxFormatCellsDialog( NULL, &aNewAttr, pTableObj->GetModel(), pTableObj) : 0 ); if( pDlg.get() && pDlg->Execute() ) { - SfxItemSet aNewSet( *(pDlg->GetOutputItemSet ()) ); + SfxItemSet aNewSet( aNewAttr ); + aNewSet.Put( *(pDlg->GetOutputItemSet ()) ); SvxBoxItem aNewBoxItem( static_cast< const SvxBoxItem& >( aNewSet.Get( SDRATTR_TABLE_BORDER ) ) ); |