preview image cropping fixed

This commit is contained in:
honfika
2014-06-04 22:54:02 +02:00
parent 369a722f74
commit c5a3be1ff6
3 changed files with 178 additions and 175 deletions
@@ -186,8 +186,8 @@ public class PreviewImage extends JPanel {
} else if (treeItem instanceof BoundedTag) {
BoundedTag boundedTag = (BoundedTag) treeItem;
RECT rect = boundedTag.getRect();
width = (int) (rect.getWidth() / SWF.unitDivisor);
height = (int) (rect.getHeight() / SWF.unitDivisor);
width = (int) (rect.getWidth() / SWF.unitDivisor) + 1;
height = (int) (rect.getHeight() / SWF.unitDivisor) + 1;
m.translate(-rect.Xmin, -rect.Ymin);
}