mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-10 17:22:09 +10:00
fixed board collapsing bug
This commit is contained in:
+5
-1
@@ -133,7 +133,11 @@ class G2DWrapper extends Graphics2D implements IDrawingObserver {
|
|||||||
Area area = new Area(s);
|
Area area = new Area(s);
|
||||||
area.transform(currentTx);
|
area.transform(currentTx);
|
||||||
currentArea.add(area);
|
currentArea.add(area);
|
||||||
lastShape = s;
|
Rectangle2D bounds = s.getBounds2D();
|
||||||
|
// Only cache the shape if it's not 1D.
|
||||||
|
if (bounds.getWidth() > 1 && bounds.getHeight() > 1) {
|
||||||
|
lastShape = s;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user