mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-07-07 04:48:16 +00:00
Changed: #2610 Export as SWF - take SWF bounds from the exported item bounds
This commit is contained in:
@@ -317,13 +317,11 @@ public class PreviewExporter {
|
||||
outrect = new RECT(treeItemBounds);
|
||||
} else {
|
||||
if (treeItemBounds != null) {
|
||||
if (outrect.getWidth() < treeItemBounds.getWidth()) {
|
||||
outrect.Xmax += treeItemBounds.getWidth() - outrect.getWidth();
|
||||
}
|
||||
|
||||
if (outrect.getHeight() < treeItemBounds.getHeight()) {
|
||||
outrect.Ymax += treeItemBounds.getHeight() - outrect.getHeight();
|
||||
}
|
||||
outrect = new RECT(treeItemBounds);
|
||||
outrect.Xmax = outrect.getWidth();
|
||||
outrect.Xmin = 0;
|
||||
outrect.Ymax = outrect.getHeight();
|
||||
outrect.Ymin = 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user