diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-05-10 11:14:59 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-05-10 13:37:16 +0200 |
commit | 5ad4e88c0521024bf9d94a6199c5c8f6060fc93b (patch) | |
tree | 2d5a0f70898dce93baefa498883d67e0c86b07e3 | |
parent | 5ddaaa0c86a9c7851d2277d56b379a3412b1fff3 (diff) |
handle empty tools::Rectangle in filter
Change-Id: I7f11f6b466cce85718ecf3d158f78962e756479f
Reviewed-on: https://gerrit.libreoffice.org/72111
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r-- | filter/source/msfilter/escherex.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/filter/source/msfilter/escherex.cxx b/filter/source/msfilter/escherex.cxx index 9fcefe8caf11..80899ff01558 100644 --- a/filter/source/msfilter/escherex.cxx +++ b/filter/source/msfilter/escherex.cxx @@ -5174,8 +5174,8 @@ sal_uInt32 EscherEx::EnterGroup( const OUString& rShapeName, const tools::Rectan mpOutStrm->Tell() ); mpOutStrm ->WriteInt32( aRect.Left() ) // Bounding box for the grouped shapes to which they will be attached .WriteInt32( aRect.Top() ) - .WriteInt32( aRect.Right() ) - .WriteInt32( aRect.Bottom() ); + .WriteInt32( aRect.IsWidthEmpty() ? aRect.Left() : aRect.Right() ) + .WriteInt32( aRect.IsHeightEmpty() ? aRect.Top() : aRect.Bottom() ); sal_uInt32 nShapeId = GenerateShapeId(); if ( !mnGroupLevel ) |