瀏覽代碼

Activated refresh to fix frame shadow redraw bug.

markus.muehlbrandt@itemis.de 13 年之前
父節點
當前提交
8a873cde5e

+ 3 - 1
plugins/org.yakindu.sct.ui.editor/src/org/yakindu/sct/ui/editor/editparts/StateEditPart.java

@@ -210,7 +210,9 @@ public class StateEditPart extends ShapeNodeEditPart implements
 		// If a redraw is done in this method the state is drawn on creation
 		// process at position 0,0 and then "jumps" to the correct position (See
 		// YAKHMI-62).
-		// nodeFigure.getUpdateManager().performUpdate();
+		if (isActive()) {
+			nodeFigure.getUpdateManager().performUpdate();
+		}
 	}
 
 	/**