summaryrefslogtreecommitdiff
path: root/svx/inc
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2020-05-08 16:43:22 +0200
committerMiklos Vajna <vmiklos@collabora.com>2020-05-12 09:56:56 +0200
commitb4ed373a15b1e8d90c94ec7030ee3d3785f7e8f9 (patch)
treee8f151eafc8529eee0134f2b54067d97ffc78001 /svx/inc
parent7e54295440438b608cb12d5f62896839ca070fab (diff)
Related: tdf#129916 svx: improve shadow size of custom shapes
There are multiple problems with this bug document, the first is that the shadow primitive got the default position (0) of the owning shape. Do it the same way as commit 6454b6336b8de9a4c5899adeab552af6f794cdc4 (tdf#130058 Import shadow size., 2020-04-14) did for graphic objects. This requires constructing a transform matrix in ViewContactOfSdrObjCustomShape::createViewIndependentPrimitive2DSequence(), include position and size in that as a start. (cherry picked from commit e2b0e614e1185c960b3015414919f69a1ed35aa0) Change-Id: Ia51df555c1984971afe7c52ba3f2658099a4e7b3
Diffstat (limited to 'svx/inc')
-rw-r--r--svx/inc/sdr/primitive2d/sdrcustomshapeprimitive2d.hxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/svx/inc/sdr/primitive2d/sdrcustomshapeprimitive2d.hxx b/svx/inc/sdr/primitive2d/sdrcustomshapeprimitive2d.hxx
index 285185684f15..84488906470a 100644
--- a/svx/inc/sdr/primitive2d/sdrcustomshapeprimitive2d.hxx
+++ b/svx/inc/sdr/primitive2d/sdrcustomshapeprimitive2d.hxx
@@ -47,6 +47,8 @@ namespace drawinglayer
// making exceptions with shadow generation
bool const mb3DShape : 1;
+ basegfx::B2DHomMatrix maTransform;
+
protected:
// local decomposition.
virtual void create2DDecomposition(Primitive2DContainer& rContainer, const geometry::ViewInformation2D& aViewInformation) const override;
@@ -57,7 +59,8 @@ namespace drawinglayer
const Primitive2DContainer& rSubPrimitives,
const basegfx::B2DHomMatrix& rTextBox,
bool bWordWrap,
- bool b3DShape);
+ bool b3DShape,
+ const basegfx::B2DHomMatrix& rObjectMatrix);
// data access
const attribute::SdrShadowTextAttribute& getSdrSTAttribute() const { return maSdrSTAttribute; }