# HG changeset patch # User dadubrow # Date 1285691062 18000 # Node ID 82d5b8441aa92bf7dbcadebe19599210212046dd # Parent 87162897325f2ae3a4d8397597b2bd1c86c4ad55 Fix an SWT error in portal causing ugly behavior with other views diff -r 87162897325f -r 82d5b8441aa9 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));