From 0eab1adad76919cbe3243ffd92df088f5259f074 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Sun, 19 Feb 2023 19:23:13 +0000 Subject: [PATCH] downgrade assert to warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit list of documents that assert here from crashtesting is known, so turn into a warning for now Change-Id: I45da002f00f92d65778e69f27040c8e09b7c8501 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/147304 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- editeng/source/items/frmitems.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/editeng/source/items/frmitems.cxx b/editeng/source/items/frmitems.cxx index 01a2f7d70879..b3b71522ee0e 100644 --- a/editeng/source/items/frmitems.cxx +++ b/editeng/source/items/frmitems.cxx @@ -72,6 +72,7 @@ #include #include #include +#include #include #include @@ -465,7 +466,7 @@ bool SvxLRSpaceItem::PutValue( const uno::Any& rVal, sal_uInt8 nMemberId ) void SvxLRSpaceItem::SetLeft(const tools::Long nL, const sal_uInt16 nProp) { nLeftMargin = (nL * nProp) / 100; - assert(nFirstLineOffset == 0); // probably call SetTextLeft instead? looks inconsistent otherwise + SAL_WARN_IF(nFirstLineOffset != 0, "editeng", "probably call SetTextLeft instead? looks inconsistent otherwise"); nPropLeftMargin = nProp; }