svx/source/sidebar/area/AreaPropertyPanelBase.cxx | 2 +- sw/inc/fmthdft.hxx | 2 ++ sw/source/core/layout/atrfrm.cxx | 14 ++++++++++++-- 3 files changed, 15 insertions(+), 3 deletions(-)
New commits: commit b0788d530f4c35f683a80ee9070cd8935de4ef95 Author: Caolán McNamara <[email protected]> AuthorDate: Fri Dec 5 08:51:11 2025 +0000 Commit: Caolán McNamara <[email protected]> CommitDate: Fri Dec 5 13:43:39 2025 +0100 cid#1399305 Uncaught exception and cid#1399345 Uncaught exception Change-Id: Ibbd255a4aa1ebdc360f94b3030371da7b6a6602f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/195068 Tested-by: Jenkins Reviewed-by: Caolán McNamara <[email protected]> diff --git a/sw/inc/fmthdft.hxx b/sw/inc/fmthdft.hxx index 00feefb3dedc..08158487d318 100644 --- a/sw/inc/fmthdft.hxx +++ b/sw/inc/fmthdft.hxx @@ -36,6 +36,7 @@ class SW_DLLPUBLIC SwFormatHeader final : public SfxPoolItem, public sw::FrameFo { bool m_bActive; ///< Only for controlling (creation of content). + void ImplDestroy(); public: DECLARE_ITEM_TYPE_FUNCTION(SwFormatHeader) SwFormatHeader( bool bOn = false ); @@ -69,6 +70,7 @@ class SW_DLLPUBLIC SwFormatFooter final : public SfxPoolItem, public sw::FrameFo { bool m_bActive; // Only for controlling (creation of content). + void ImplDestroy(); public: DECLARE_ITEM_TYPE_FUNCTION(SwFormatFooter) SwFormatFooter( bool bOn = false ); diff --git a/sw/source/core/layout/atrfrm.cxx b/sw/source/core/layout/atrfrm.cxx index 3fd54049de1b..1d80a2918c9f 100644 --- a/sw/source/core/layout/atrfrm.cxx +++ b/sw/source/core/layout/atrfrm.cxx @@ -516,12 +516,17 @@ SwFormatHeader::SwFormatHeader( bool bOn ) { } - SwFormatHeader::~SwFormatHeader() +void SwFormatHeader::ImplDestroy() { if ( GetHeaderFormat() ) lcl_DelHFFormat( this, GetHeaderFormat() ); } +SwFormatHeader::~SwFormatHeader() +{ + suppress_fun_call_w_exception(ImplDestroy()); +} + bool SwFormatHeader::operator==( const SfxPoolItem& rAttr ) const { assert(SfxPoolItem::operator==(rAttr)); @@ -575,12 +580,17 @@ SwFormatFooter::SwFormatFooter( bool bOn ) { } - SwFormatFooter::~SwFormatFooter() +void SwFormatFooter::ImplDestroy() { if ( GetFooterFormat() ) lcl_DelHFFormat( this, GetFooterFormat() ); } +SwFormatFooter::~SwFormatFooter() +{ + suppress_fun_call_w_exception(ImplDestroy()); +} + void SwFormatFooter::RegisterToFormat( SwFormat& rFormat ) { rFormat.Add(*this); commit 6011ce71cb599d67182c373d3a79b9c74b54423b Author: Caolán McNamara <[email protected]> AuthorDate: Fri Dec 5 08:49:17 2025 +0000 Commit: Caolán McNamara <[email protected]> CommitDate: Fri Dec 5 13:43:30 2025 +0100 cid#1675329 silence Overflowed constant Change-Id: I3d1e80e26473968bfa650f46ad8bed095323b88c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/195057 Tested-by: Caolán McNamara <[email protected]> Reviewed-by: Caolán McNamara <[email protected]> diff --git a/svx/source/sidebar/area/AreaPropertyPanelBase.cxx b/svx/source/sidebar/area/AreaPropertyPanelBase.cxx index f506e0124b5a..b86c3f1d60fc 100644 --- a/svx/source/sidebar/area/AreaPropertyPanelBase.cxx +++ b/svx/source/sidebar/area/AreaPropertyPanelBase.cxx @@ -297,7 +297,7 @@ void AreaPropertyPanelBase::SelectFillAttrHdl_Impl() if (pSh && pSh->GetItem(SID_COLOR_TABLE)) { basegfx::BGradient aGradient(createColorStops()); - aGradient.SetAngle(Degree10(mxMTRAngle->get_value(FieldUnit::DEGREE) * 10)); + aGradient.SetAngle(Degree10((mxMTRAngle->get_value(FieldUnit::DEGREE) % 360) * 10)); aGradient.SetGradientStyle(static_cast<css::awt::GradientStyle>(mxGradientStyle->get_active())); const XFillGradientItem aXFillGradientItem(mxLbFillAttr->get_active_text(), aGradient);
