--- a/core/com.nokia.carbide.discovery.ui/src/com/nokia/carbide/internal/discovery/ui/editor/PortalEditor.java Tue Sep 28 10:37:18 2010 -0500
+++ b/core/com.nokia.carbide.discovery.ui/src/com/nokia/carbide/internal/discovery/ui/editor/PortalEditor.java Tue Sep 28 11:24:22 2010 -0500
@@ -282,6 +282,8 @@
@Override
public void handleEvent(Event event) {
Rectangle rect = composite.getClientArea();
+ if (rect.isEmpty())
+ return;
Image newImage = new Image(composite.getDisplay(), rect.width, rect.height);
GC gc = new GC(newImage);
gc.setForeground(composite.getDisplay().getSystemColor(SWT.COLOR_WIDGET_FOREGROUND));