summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2007-08-02 16:23:20 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2007-08-02 16:23:20 +0000
commit57b4e1cf6792105a921312ff741337eb49dde442 (patch)
tree59f39baf14f216cccc62406c2cfe074a5f08901e /xmloff
parent730d4ad73eae2be64c9d2a15b6d5cc29fd64a901 (diff)
INTEGRATION: CWS aw052 (1.24.118); FILE MERGED
2007/07/05 15:13:31 aw 1.24.118.2: RESYNC: (1.24-1.25); FILE MERGED 2007/06/26 16:35:34 aw 1.24.118.1: #i78696# changed handling of rotation contained in transformation to mathematically correct orientation
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/draw/xexptran.cxx12
1 files changed, 9 insertions, 3 deletions
diff --git a/xmloff/source/draw/xexptran.cxx b/xmloff/source/draw/xexptran.cxx
index 80e3950eb8d4..8614bc8630ac 100644
--- a/xmloff/source/draw/xexptran.cxx
+++ b/xmloff/source/draw/xexptran.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: xexptran.cxx,v $
*
- * $Revision: 1.25 $
+ * $Revision: 1.26 $
*
- * last change: $Author: hr $ $Date: 2007-06-27 15:07:46 $
+ * last change: $Author: hr $ $Date: 2007-08-02 17:23:20 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -698,7 +698,13 @@ void SdXMLImExTransform2D::GetFullTransform(::basegfx::B2DHomMatrix& rFullTrans)
{
case IMP_SDXMLEXP_TRANSOBJ2D_ROTATE :
{
- rFullTrans.rotate(((ImpSdXMLExpTransObj2DRotate*)pObj)->mfRotate);
+ // #i78696#
+ // mfRotate is mathematically wrong oriented since we export/import the angle
+ // values mirrored. This error is fixed in the API, but not yet in the FileFormat.
+ // For the FileFormat there is a follow-up task (#i78698#) to fix this in the next
+ // ODF FileFormat version. For now - to emulate the old behaviour - it is necessary
+ // to mirror the value here
+ rFullTrans.rotate(((ImpSdXMLExpTransObj2DRotate*)pObj)->mfRotate * -1.0);
break;
}
case IMP_SDXMLEXP_TRANSOBJ2D_SCALE :