Fix an SWT error in portal causing ugly behavior with other views
authordadubrow
Tue, 28 Sep 2010 11:24:22 -0500
changeset 2111 82d5b8441aa9
parent 2110 87162897325f
child 2112 3717657ae3f1
Fix an SWT error in portal causing ugly behavior with other views
core/com.nokia.carbide.discovery.ui/src/com/nokia/carbide/internal/discovery/ui/editor/PortalEditor.java
--- 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));