mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-05-28 14:27:13 +00:00
Fixed #1904 NullpointerException when fast switching items
This commit is contained in:
@@ -473,7 +473,11 @@ public final class ImagePanel extends JPanel implements MediaDisplay {
|
||||
tim.schedule(new TimerTask() {
|
||||
@Override
|
||||
public void run() {
|
||||
RECT rect = timelined.getRect();
|
||||
Timelined tim = timelined;
|
||||
if (tim == null) {
|
||||
return;
|
||||
}
|
||||
RECT rect = tim.getRect();
|
||||
double zoomDouble = zoom.fit ? getZoomToFit() : zoom.value;
|
||||
double w = rect.getWidth() / SWF.unitDivisor * zoomDouble;
|
||||
double h = rect.getHeight() / SWF.unitDivisor * zoomDouble;
|
||||
|
||||
Reference in New Issue
Block a user