Changed: #2610 Export as SWF - take SWF bounds from the exported item bounds

This commit is contained in:
Jindra Petřík
2026-01-31 17:26:36 +01:00
parent a843b3eb76
commit 69c9cdf761
2 changed files with 9 additions and 7 deletions

View File

@@ -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;
}
}