File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed
bundles/org.eclipse.swt/Eclipse SWT
common/org/eclipse/swt/graphics
win32/org/eclipse/swt/graphics Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ public interface ImageGcDrawer {
45
45
* @param imageData The resulting ImageData after <code>drawOn</code> was called
46
46
*/
47
47
default void postProcess (ImageData imageData ) {
48
+ imageData .data = null ;
48
49
}
49
50
50
51
/**
Original file line number Diff line number Diff line change @@ -2561,6 +2561,10 @@ protected ImageHandle newImageHandle(int zoom) {
2561
2561
drawer .drawOn (gc , width , height );
2562
2562
ImageData imageData = Image .this .getImageMetadata (zoom ).getImageData ();
2563
2563
drawer .postProcess (imageData );
2564
+ if (imageData .data != null ) {
2565
+ zoomLevelToImageHandle .get (zoom ).destroy ();
2566
+ init (imageData , zoom );
2567
+ }
2564
2568
return zoomLevelToImageHandle .get (zoom );
2565
2569
} finally {
2566
2570
gc .dispose ();
You can’t perform that action at this time.
0 commit comments