From 38a022ce8b2698ef4535d3487326307928c5208b Mon Sep 17 00:00:00 2001 From: Christopher Copits Date: Sun, 10 Mar 2013 18:11:24 -0400 Subject: fdo#57362 Cannot save document after editing footer background and border In HeaderFooterWin.cxx's SwHeaderFooterWin::ExecuteCommand(): after changes are made to the header's background, box, or shadow, I call SetModified(true) to signal that the document was modified. Change-Id: I2be5710dde9d7a6f5d4373484d52ece71c91cdd4 Reviewed-on: https://gerrit.libreoffice.org/2654 Reviewed-by: Fridrich Strba Tested-by: Fridrich Strba --- sw/source/ui/docvw/HeaderFooterWin.cxx | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'sw') diff --git a/sw/source/ui/docvw/HeaderFooterWin.cxx b/sw/source/ui/docvw/HeaderFooterWin.cxx index 25e291384ed9..7b0f5bf195cb 100644 --- a/sw/source/ui/docvw/HeaderFooterWin.cxx +++ b/sw/source/ui/docvw/HeaderFooterWin.cxx @@ -465,14 +465,20 @@ void SwHeaderFooterWin::ExecuteCommand( sal_uInt16 nSlot ) if ( svx::ShowBorderBackgroundDlg( this, &aSet, true ) ) { const SfxPoolItem* pItem; - if ( SFX_ITEM_SET == aSet.GetItemState( RES_BACKGROUND, sal_False, &pItem ) ) + if ( SFX_ITEM_SET == aSet.GetItemState( RES_BACKGROUND, sal_False, &pItem ) ) { pHFFmt->SetFmtAttr( *pItem ); + rView.GetDocShell()->SetModified(true); + } - if ( SFX_ITEM_SET == aSet.GetItemState( RES_BOX, sal_False, &pItem ) ) + if ( SFX_ITEM_SET == aSet.GetItemState( RES_BOX, sal_False, &pItem ) ) { pHFFmt->SetFmtAttr( *pItem ); + rView.GetDocShell()->SetModified(true); + } - if ( SFX_ITEM_SET == aSet.GetItemState( RES_SHADOW, sal_False, &pItem ) ) + if ( SFX_ITEM_SET == aSet.GetItemState( RES_SHADOW, sal_False, &pItem ) ) { pHFFmt->SetFmtAttr( *pItem ); + rView.GetDocShell()->SetModified(true); + } } } break; -- cgit