This commit is contained in:
Jesse Boyd 2017-08-10 12:39:08 +10:00
parent 8d9914fafd
commit ea94c0c11a
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F

View File

@ -19,8 +19,9 @@ public class ResettableExtent extends AbstractDelegateExtent implements Serializ
} }
public final void init(Vector pos) { public final void init(Vector pos) {
if (getExtent() instanceof ResettableExtent) { Extent extent = getExtent();
((ResettableExtent) getExtent()).init(pos); if (extent instanceof ResettableExtent && extent != this) {
((ResettableExtent) extent).init(pos);
} }
setOrigin(pos); setOrigin(pos);
} }