[Libreoffice-commits] core.git: filter/source
Noel Grandin (via logerrit)
logerrit at kemper.freedesktop.org
Fri May 10 11:38:18 UTC 2019
filter/source/msfilter/escherex.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 5ad4e88c0521024bf9d94a6199c5c8f6060fc93b
Author: Noel Grandin <noel.grandin at collabora.co.uk>
AuthorDate: Fri May 10 11:14:59 2019 +0200
Commit: Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Fri May 10 13:37:16 2019 +0200
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 at collabora.co.uk>
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 )
More information about the Libreoffice-commits
mailing list