summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2024-12-09 10:14:57 +0000
committerXisco Fauli <xiscofauli@libreoffice.org>2024-12-10 04:16:34 +0100
commit0e5ad67de1516e3553cf787107316ddbdbeefc69 (patch)
treea689a33421580908b880a262d87d9d9b82729c71
parent80824427833d8243b311f3a863342e44aa585173 (diff)
crashtesting: reimport of fdo61125-1.docx has negative image width
we probably shouldn't do that anyway, but the assumption at this import check appears to be for >= 0 Change-Id: Ibf98b1b0802a15bc283b3d1e3db7e4e8163837dd Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178134 Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org> Tested-by: Jenkins
-rw-r--r--oox/source/drawingml/fillproperties.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/oox/source/drawingml/fillproperties.cxx b/oox/source/drawingml/fillproperties.cxx
index 061cab065849..d8337632d6d7 100644
--- a/oox/source/drawingml/fillproperties.cxx
+++ b/oox/source/drawingml/fillproperties.cxx
@@ -833,7 +833,7 @@ void GraphicProperties::pushToPropMap( PropertyMap& rPropMap, const GraphicHelpe
{
geometry::IntegerRectangle2D oClipRect( maBlipProps.moClipRect.value() );
awt::Size aOriginalSize( rGraphicHelper.getOriginalSize( xGraphic ) );
- if ( aOriginalSize.Width && aOriginalSize.Height )
+ if (aOriginalSize.Width > 0 && aOriginalSize.Height > 0)
{
text::GraphicCrop aGraphCrop( 0, 0, 0, 0 );
if ( oClipRect.X1 )