X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.trend%2Fsrc%2Forg%2Fsimantics%2Ftrend%2Fimpl%2FItemNode.java;h=402d793f8cc4c34e4fbc15c5d4958f9a3635e26c;hb=1efdd1cea0fcef60df0267f23e4ffda9fab5b23d;hp=699b441ca226c916aa6e725aa8c10a6df6c09b53;hpb=fee871302ad4c53ca2c2307bd13366d99116d930;p=simantics%2Fplatform.git 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 699b441ca..402d793f8 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 @@ -429,7 +429,10 @@ public class ItemNode extends G2DNode implements TrendLayout { } } - if (flat) + // gitlab #35: t2 > t1 ensure that the value band is + // rendered as a horizontal line until the the time when + // the band's value went out of dead-band. + if (flat || t2 > t1) lineTo(x2, y2); // if(showBand) {