mirror of
https://github.com/AppleCommander/AppleCommander.git
synced 2024-12-22 08:30:35 +00:00
Attempted patch for issue #89
This commit is contained in:
parent
f642d1451d
commit
47206f0fd8
@ -298,6 +298,12 @@ public class DiskMapTab {
|
|||||||
}
|
}
|
||||||
xpos[xdim] = area.width;
|
xpos[xdim] = area.width;
|
||||||
|
|
||||||
|
if (area.width <= 0 || area.height <= 0) {
|
||||||
|
// patch for issue #89
|
||||||
|
// based on stack trace it appears the bounds area may be invalid
|
||||||
|
// under some circumstances
|
||||||
|
return;
|
||||||
|
}
|
||||||
Image image = new Image(canvas.getDisplay(), area);
|
Image image = new Image(canvas.getDisplay(), area);
|
||||||
GC gc = new GC(image);
|
GC gc = new GC(image);
|
||||||
int x = 0;
|
int x = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user