]> gerrit.simantics Code Review - simantics/sysdyn.git/commitdiff
Sysdyn input output element text to bold italic (refs #5007).
authormiettinen <miettinen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Tue, 24 Jun 2014 11:50:11 +0000 (11:50 +0000)
committermiettinen <miettinen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Tue, 24 Jun 2014 11:50:11 +0000 (11:50 +0000)
git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@29719 ac1ea38d-2e2b-0410-8846-a27921b304fc

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

index 174ae5748fab4c4b33f19e501283bb0fe0fdc2ec..a3c3be2ca81993b3ae882be4213018b41f10556f 100644 (file)
@@ -157,7 +157,7 @@ public abstract class SysdynElementFactory extends SyncElementFactory {
         Resource component = graph.getPossibleObject(element, mr.ElementToComponent);\r
         if (component != null && graph.hasStatement(component, SysdynResource.getInstance(graph).IsOutput)) {\r
             Font font = ElementUtils.getTextFont(e);\r
-            font = font.deriveFont(Font.BOLD);\r
+            font = font.deriveFont(font.isItalic() ? Font.ITALIC | Font.BOLD : Font.BOLD);\r
             ElementUtils.setTextFont(e, font);\r
         }\r
         \r