Skip to content
Open
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -522,6 +522,8 @@ private Object drawShape(
throw new ParserException(I18N.getText(OBJECT_NOT_FOUND, functionName, shapeName));
}
ShapeDrawable shapeDrawable = CACHED_SHAPES.get(shapeName);
shapeDrawable.setId(
new GUID()); // this gives the drawn element a separate ID to the cached shape
Rectangle bounds = shapeDrawable.getBounds();

/* Sanity checks */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ protected AbstractDrawing(GUID id) {
}

protected AbstractDrawing(AbstractDrawing other) {
// The only thing we don't preserve is the ID.
this.id = new GUID();
this.id = other.id;
this.layer = other.layer;
this.name = other.name;
}
Expand Down
Loading