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

New commits:
commit cec27978b869309dcaf84faf000106fefe0ab166
Author:     Jim Raykowski <rayk...@gmail.com>
AuthorDate: Wed Oct 30 20:38:35 2019 -0800
Commit:     Jim Raykowski <rayk...@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 <rayk...@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 );
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to