fixed board collapsing bug

This commit is contained in:
bancika
2011-01-21 08:35:18 +00:00
parent 9ae74ac0a1
commit 3f4aa807f0
@@ -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;
}
} }
/** /**