]> gerrit.simantics Code Review - simantics/sysdyn.git/commitdiff
fixed parenthesis bug
authorlempinen <lempinen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Wed, 10 Mar 2010 11:46:01 +0000 (11:46 +0000)
committerlempinen <lempinen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Wed, 10 Mar 2010 11:46:01 +0000 (11:46 +0000)
git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@14767 ac1ea38d-2e2b-0410-8846-a27921b304fc

org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/elements/TextElement.java

index 9da23400beab33ce3e0af2090e5ae9ed3673e7c7..e3555d1ef930a2d243d536addeba7641b48ac970 100644 (file)
@@ -146,9 +146,10 @@ public class TextElement extends RectangularElement implements Movable, Connecta
                     editor.removeAction(this);  \r
                     editor.requestRepaint();                   \r
                 }\r
-                else if(event.key.equals("Enter"))\r
+                else if(event.key.equals("Enter")) {\r
                     validateNewName();\r
                     editor.removeAction(this);\r
+                }\r
                 return true;\r
             }\r
             else if(_event instanceof ClickEvent) {\r