diff options
author | Markus Mohrhard <markus.mohrhard@collabora.co.uk> | 2014-02-15 03:24:45 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-02-15 03:49:05 +0100 |
commit | 5c7bbb11aed16e09ba67222f53e4c2ffe5687fb3 (patch) | |
tree | 0b069ee5edb033eeb27545cef9c55ea4bbd2cde4 /chart2/source | |
parent | 10e8194dd84ca58dfcbbff7f727e79fb8561a105 (diff) |
set transformation matrix as property with fixed size
Change-Id: I3853ea0f6f3b82dc6ea7b402dec58d528b639684
Diffstat (limited to 'chart2/source')
-rw-r--r-- | chart2/source/view/inc/DummyXShape.hxx | 1 | ||||
-rw-r--r-- | chart2/source/view/main/DummyXShape.cxx | 5 |
2 files changed, 5 insertions, 1 deletions
diff --git a/chart2/source/view/inc/DummyXShape.hxx b/chart2/source/view/inc/DummyXShape.hxx index 4ce530a20e36..3a9dccbbfcba 100644 --- a/chart2/source/view/inc/DummyXShape.hxx +++ b/chart2/source/view/inc/DummyXShape.hxx @@ -355,7 +355,6 @@ private: chart2::XFormattedString > > maFormattedString; }; - class DummyXShapes : public DummyXShape, public com::sun::star::drawing::XShapes { public: diff --git a/chart2/source/view/main/DummyXShape.cxx b/chart2/source/view/main/DummyXShape.cxx index a4bf7b80f1db..3508f19a9ac1 100644 --- a/chart2/source/view/main/DummyXShape.cxx +++ b/chart2/source/view/main/DummyXShape.cxx @@ -742,6 +742,11 @@ DummyText::DummyText(const OUString& rText, const tNameSequence& rNames, drawing::HomogenMatrix3 aTrans = rTrans.get<drawing::HomogenMatrix3>(); setSize(awt::Size(20*bmpWidth, 20*bmpHeight)); setPosition(awt::Point(aTrans.Line1.Column3, aTrans.Line2.Column3)); + aTrans.Line1.Column1 = 20 * bmpWidth; + aTrans.Line2.Column2 = 20 * bmpHeight; + uno::Any aNewTrans; + aNewTrans <<= aTrans; + setPropertyValue("Transformation", aNewTrans); } else setSize(awt::Size(20*bmpWidth, 20*bmpHeight)); |