Kaydet (Commit) 9e534250 authored tarafından David Tardon's avatar David Tardon Kaydeden (comit) Fridrich Strba

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 9cd71f99)

Change-Id: I9100dbe05c418a9dd1b819534a08076c9a4aed1c
Reviewed-on: https://gerrit.libreoffice.org/4145Reviewed-by: 's avatarFridrich Strba <fridrich@documentfoundation.org>
Tested-by: 's avatarFridrich Strba <fridrich@documentfoundation.org>
üst 2d03cef0
...@@ -726,7 +726,8 @@ void SvxTableController::onFormatTable( SfxRequest& rReq ) ...@@ -726,7 +726,8 @@ void SvxTableController::onFormatTable( SfxRequest& rReq )
std::auto_ptr< SfxAbstractTabDialog > pDlg( pFact ? pFact->CreateSvxFormatCellsDialog( NULL, &aNewAttr, pTableObj->GetModel(), pTableObj) : 0 ); std::auto_ptr< SfxAbstractTabDialog > pDlg( pFact ? pFact->CreateSvxFormatCellsDialog( NULL, &aNewAttr, pTableObj->GetModel(), pTableObj) : 0 );
if( pDlg.get() && pDlg->Execute() ) 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 ) ) ); SvxBoxItem aNewBoxItem( static_cast< const SvxBoxItem& >( aNewSet.Get( SDRATTR_TABLE_BORDER ) ) );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment