vcl/source/gdi/metaact.cxx | 5 +++++ 1 file changed, 5 insertions(+) New commits: commit 6a77594f380b596371a0a036a1e229e02e8666b9 Author: Caolán McNamara <caolan.mcnam...@collabora.com> AuthorDate: Tue Sep 12 11:49:23 2023 +0100 Commit: Caolán McNamara <caolan.mcnam...@collabora.com> CommitDate: Tue Sep 12 14:03:52 2023 +0200
ofz#62155 skip line with negative width Change-Id: I5549ac15a179051f6fb02786c53469479b0a2e67 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156839 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com> diff --git a/vcl/source/gdi/metaact.cxx b/vcl/source/gdi/metaact.cxx index e5e243f55652..70e6f7cf9c82 100644 --- a/vcl/source/gdi/metaact.cxx +++ b/vcl/source/gdi/metaact.cxx @@ -817,6 +817,11 @@ MetaTextLineAction::MetaTextLineAction( const Point& rPos, tools::Long nWidth, void MetaTextLineAction::Execute( OutputDevice* pOut ) { + if (mnWidth < 0) + { + SAL_WARN("vcl", "skipping line with negative width: " << mnWidth); + return; + } pOut->DrawTextLine( maPos, mnWidth, meStrikeout, meUnderline, meOverline ); }