mirror of
https://github.com/jneug/zeichenmaschine.git
synced 2026-10-12 01:45:18 +02:00
copyFrom angepasst
This commit is contained in:
@@ -325,8 +325,8 @@ public abstract class Shape extends BasicDrawable {
|
|||||||
setStrokeWeight(shape.getStrokeWeight());
|
setStrokeWeight(shape.getStrokeWeight());
|
||||||
setStrokeType(shape.getStrokeType());
|
setStrokeType(shape.getStrokeType());
|
||||||
visible = shape.isVisible();
|
visible = shape.isVisible();
|
||||||
rotation = shape.rotation;
|
rotation = shape.getRotation();
|
||||||
scale(shape.scale);
|
scale(shape.getScale());
|
||||||
setAnchor(shape.getAnchor());
|
setAnchor(shape.getAnchor());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -181,13 +181,13 @@ public class Text extends Shape {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void copyFrom( Shape shape ) {
|
public void copyFrom( Shape shape ) {
|
||||||
super.copyFrom(shape);
|
|
||||||
if( shape instanceof Text ) {
|
if( shape instanceof Text ) {
|
||||||
Text pText = (Text) shape;
|
Text pText = (Text) shape;
|
||||||
this.text = pText.getText();
|
this.text = pText.getText();
|
||||||
this.font = pText.getFont();
|
this.font = pText.getFont();
|
||||||
calculateBounds();
|
|
||||||
}
|
}
|
||||||
|
super.copyFrom(shape);
|
||||||
|
calculateBounds();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user