X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.trend%2Fsrc%2Forg%2Fsimantics%2Ftrend%2Fimpl%2FItemNode.java;h=699b441ca226c916aa6e725aa8c10a6df6c09b53;hp=c866d2cc290490d9f48804193de8926af128ed9e;hb=fee871302ad4c53ca2c2307bd13366d99116d930;hpb=3f4efcd9edf8d1ba3a1bb8c842900cca1e6d30f3;ds=sidebyside diff --git a/bundles/org.simantics.trend/src/org/simantics/trend/impl/ItemNode.java b/bundles/org.simantics.trend/src/org/simantics/trend/impl/ItemNode.java index c866d2cc2..699b441ca 100644 --- a/bundles/org.simantics.trend/src/org/simantics/trend/impl/ItemNode.java +++ b/bundles/org.simantics.trend/src/org/simantics/trend/impl/ItemNode.java @@ -248,7 +248,9 @@ public class ItemNode extends G2DNode implements TrendLayout { line.lineTo(maxX, ny); line.moveTo(x, y); } else { - line.lineTo(x, y); + if (x != currentX || y != currentY) { + line.lineTo(x, y); + } } } @@ -427,7 +429,8 @@ public class ItemNode extends G2DNode implements TrendLayout { } } - lineTo(x2, y2); + if (flat) + lineTo(x2, y2); // if(showBand) { // lineTo(x2, y2); @@ -468,7 +471,7 @@ public class ItemNode extends G2DNode implements TrendLayout { } // Binary signal - if (item.renderer == Renderer.Binary) { + else if (item.renderer == Renderer.Binary) { byte value = 0; if (vb.getValueBinding() instanceof BooleanBinding) { value = ((Boolean) vb.getValue(Bindings.BOOLEAN)) ? (byte)0 : (byte)1;