Hi,
I have submitted a patch for review:
https://gerrit.libreoffice.org/2654
To pull it, you can do:
git pull ssh://gerrit.libreoffice.org:29418/core refs/changes/54/2654/1
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
---
M sw/source/ui/docvw/HeaderFooterWin.cxx
1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/sw/source/ui/docvw/HeaderFooterWin.cxx
b/sw/source/ui/docvw/HeaderFooterWin.cxx
index 25e2913..7b0f5bf 100644
--- a/sw/source/ui/docvw/HeaderFooterWin.cxx
+++ b/sw/source/ui/docvw/HeaderFooterWin.cxx
@@ -465,14 +465,20 @@
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;
--
To view, visit https://gerrit.libreoffice.org/2654
To unsubscribe, visit https://gerrit.libreoffice.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I2be5710dde9d7a6f5d4373484d52ece71c91cdd4
Gerrit-PatchSet: 1
Gerrit-Project: core
Gerrit-Branch: master
Gerrit-Owner: Christopher Copits <[email protected]>
_______________________________________________
LibreOffice mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice