You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Logging a warning for GC initialized with unsupported use cases.
1. all dynamic images (retrieved via any of the existing providers).
2. all images for which handles in other zoom values have already been
created.
if (display != null && display.getRuntimeExceptionHandler() != null) {
1699
+
display.getRuntimeExceptionHandler().accept(ex);
1700
+
} else {
1701
+
throwex;
1702
+
}
1703
+
}
1704
+
}
1705
+
1693
1706
/**
1694
1707
* Invokes platform specific functionality to allocate a new GC handle.
1695
1708
* <p>
@@ -1716,6 +1729,9 @@ public long internal_new_GC (GCData data) {
1716
1729
SWT.error(SWT.ERROR_INVALID_ARGUMENT);
1717
1730
}
1718
1731
1732
+
assertCondition(imageProvider != null && (imageProviderinstanceofImageDataProviderWrapper || imageProviderinstanceofImageFileNameProviderWrapper), "Image initialized with ImageDataProvider or ImageFileNameProvider is not supposed to be modified");
1733
+
assertCondition(!zoomLevelToImageHandle.isEmpty() && (zoomLevelToImageHandle.size() != 1 || !zoomLevelToImageHandle.containsKey(getZoom())), "Images with handles created for a different zoom level should not be modified");
0 commit comments