TextTag outline fix

This commit is contained in:
Jindra Petřík
2014-09-02 20:21:25 +02:00
parent a1ff899122
commit 9a47517d94

View File

@@ -485,6 +485,7 @@ public abstract class TextTag extends CharacterTag implements DrawableTag {
@Override
public Shape getOutline(int frame, int time, int ratio, DepthState stateUnderCursor, int mouseButton, Matrix transformation) {
RECT r = getBounds();
return new Rectangle(r.Xmin, r.Ymin, r.getWidth(), r.getHeight()); //TODO: match character shapes
Shape shp = new Rectangle.Double(r.Xmin, r.Ymin, r.getWidth(), r.getHeight());
return transformation.toTransform().createTransformedShape(shp); //TODO: match character shapes (?)
}
}