From: lehtonen Date: Thu, 21 May 2015 06:19:30 +0000 (+0000) Subject: Fixed use of G2DNode.getTransform in SysdynTextElementNoBounds. X-Git-Tag: v1.29.0~79 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=a69503b0ba8cf0c323d718ad36867d767b075f60;p=simantics%2Fsysdyn.git Fixed use of G2DNode.getTransform in SysdynTextElementNoBounds. refs #5863 git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@31328 ac1ea38d-2e2b-0410-8846-a27921b304fc --- diff --git a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/elements/SysdynTextElementNoBounds.java b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/elements/SysdynTextElementNoBounds.java index 3e2f4f52..7ea3a497 100644 --- a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/elements/SysdynTextElementNoBounds.java +++ b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/elements/SysdynTextElementNoBounds.java @@ -181,7 +181,7 @@ public class SysdynTextElementNoBounds extends TextElementNoBounds { Object o = e.getHint(SG_NODE); if (o instanceof TextNode) { TextNode text = (TextNode)o; - AffineTransform at = text.getTransform(); + AffineTransform at = new AffineTransform(text.getTransform()); double x = at.getTranslateX(); double y = at.getTranslateY(); at.setToRotation(0);