editeng/source/items/frmitems.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit 0eab1adad76919cbe3243ffd92df088f5259f074 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Sun Feb 19 19:23:13 2023 +0000 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Sun Feb 19 20:11:33 2023 +0000 downgrade assert to warning 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 <caol...@redhat.com> 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 <libxml/xmlwriter.h> #include <o3tl/enumrange.hxx> #include <o3tl/safeint.hxx> +#include <sal/log.hxx> #include <vcl/GraphicLoader.hxx> #include <unotools/securityoptions.hxx> @@ -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; }