[Libreoffice-commits] core.git: sw/source

Jim Raykowski (via logerrit) logerrit at kemper.freedesktop.org
Thu Oct 31 20:38:02 UTC 2019


 sw/source/uibase/docvw/HeaderFooterWin.cxx |   14 ++++++++++++++
 1 file changed, 14 insertions(+)

New commits:
commit cec27978b869309dcaf84faf000106fefe0ab166
Author:     Jim Raykowski <raykowj at gmail.com>
AuthorDate: Wed Oct 30 20:38:35 2019 -0800
Commit:     Jim Raykowski <raykowj at gmail.com>
CommitDate: Thu Oct 31 21:37:22 2019 +0100

    tdf#128431 Box info item is needed by the Border Background dialog
    
    ...so put it back
    
    Change-Id: Ie2883410514496c247f840fb2d6755bec362a8b2
    Reviewed-on: https://gerrit.libreoffice.org/81815
    Tested-by: Jenkins
    Reviewed-by: Jim Raykowski <raykowj at gmail.com>

diff --git a/sw/source/uibase/docvw/HeaderFooterWin.cxx b/sw/source/uibase/docvw/HeaderFooterWin.cxx
index fed8e4834948..c92df0aef777 100644
--- a/sw/source/uibase/docvw/HeaderFooterWin.cxx
+++ b/sw/source/uibase/docvw/HeaderFooterWin.cxx
@@ -439,6 +439,20 @@ void SwHeaderFooterWin::ExecuteCommand(const OString& rIdent)
         // the Area TabPage can access them
         rSh.GetDoc()->getIDocumentDrawModelAccess().GetDrawModel()->PutAreaListItems( aSet );
 
+        aSet.MergeRange(SID_ATTR_BORDER_INNER, SID_ATTR_BORDER_INNER);
+        // Create a box info item... needed by the dialog
+        std::shared_ptr<SvxBoxInfoItem> aBoxInfo(std::make_shared<SvxBoxInfoItem>(SID_ATTR_BORDER_INNER));
+        const SfxPoolItem *pBoxInfo;
+        if (SfxItemState::SET == pHFFormat->GetAttrSet().GetItemState(SID_ATTR_BORDER_INNER, true, &pBoxInfo))
+            aBoxInfo.reset(static_cast<SvxBoxInfoItem*>(pBoxInfo->Clone()));
+
+        aBoxInfo->SetTable(false);
+        aBoxInfo->SetDist(true);
+        aBoxInfo->SetMinDist(false);
+        aBoxInfo->SetDefDist(MIN_BORDER_DIST);
+        aBoxInfo->SetValid(SvxBoxInfoItemValidFlags::DISABLE);
+        aSet.Put(*aBoxInfo);
+
         if (svx::ShowBorderBackgroundDlg( GetFrameWeld(), &aSet ) )
         {
             pHFFormat->SetFormatAttr( aSet );


More information about the Libreoffice-commits mailing list