Skip to content

Commit 64f5fd2

Browse files
This commit is to find out what exactly issue is in gtk
1 parent abc68c9 commit 64f5fd2

File tree

1 file changed

+5
-1
lines changed
  • bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics

1 file changed

+5
-1
lines changed

bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Image.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1452,7 +1452,11 @@ private void init(ImageData image, int zoom) {
14521452
@Override
14531453
public long internal_new_GC (GCData data) {
14541454
if (isDisposed()) SWT.error(SWT.ERROR_GRAPHIC_DISPOSED);
1455-
if (type != SWT.BITMAP || memGC != null) {
1455+
if (type != SWT.BITMAP) {
1456+
SWT.error(SWT.ERROR_INVALID_ARGUMENT);
1457+
}
1458+
1459+
if(memGC != null) {
14561460
SWT.error(SWT.ERROR_INVALID_ARGUMENT);
14571461
}
14581462
long gc = Cairo.cairo_create(surface);

0 commit comments

Comments
 (0)