summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorPaul Trojahn <paul.trojahn@gmail.com>2017-09-24 22:24:20 +0200
committerTamás Zolnai <tamas.zolnai@collabora.com>2017-09-26 13:53:19 +0200
commit808d048694630303d895e818cfd5fb48c9d16738 (patch)
tree1e242a16858142e3a38094900f72a760f700ab3a /oox
parent3d0c0abea7ed5f59ab30aa8f120d55e54d3e7098 (diff)
tdf#100065 Fix scale of transformation
The shape needs to be flipped to compensate the change of mbFlipH/mbFlipV. Change-Id: I7b680497fee6ae9ed7bbd6f4ed9089d1a25a1deb Reviewed-on: https://gerrit.libreoffice.org/42766 Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com> Tested-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Diffstat (limited to 'oox')
-rw-r--r--oox/source/drawingml/shape.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/oox/source/drawingml/shape.cxx b/oox/source/drawingml/shape.cxx
index ddf829bcea5a..292f2a2be8d0 100644
--- a/oox/source/drawingml/shape.cxx
+++ b/oox/source/drawingml/shape.cxx
@@ -517,10 +517,12 @@ Reference< XShape > const & Shape::createAndInsert(
if(aScale.getX() < 0)
{
mbFlipH = !mbFlipH;
+ aTransformation.scale(-1, 1);
}
if(aScale.getY() < 0)
{
mbFlipV = !mbFlipV;
+ aTransformation.scale(1, -1);
}
}
// rotate around object's center