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:
+3
-3
@@ -130,12 +130,12 @@ class G2DWrapper extends Graphics2D implements IDrawingObserver {
|
|||||||
if (!drawingComponent || !trackingAllowed) {
|
if (!drawingComponent || !trackingAllowed) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
Area area = new Area(s);
|
|
||||||
area.transform(currentTx);
|
|
||||||
currentArea.add(area);
|
|
||||||
Rectangle2D bounds = s.getBounds2D();
|
Rectangle2D bounds = s.getBounds2D();
|
||||||
// Only cache the shape if it's not 1D.
|
// Only cache the shape if it's not 1D.
|
||||||
if (bounds.getWidth() > 1 && bounds.getHeight() > 1) {
|
if (bounds.getWidth() > 1 && bounds.getHeight() > 1) {
|
||||||
|
Area area = new Area(s);
|
||||||
|
area.transform(currentTx);
|
||||||
|
currentArea.add(area);
|
||||||
lastShape = s;
|
lastShape = s;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user