]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.trend/src/org/simantics/trend/impl/ItemNode.java
Still fixes history collection value band endTime setting and rendering
[simantics/platform.git] / bundles / org.simantics.trend / src / org / simantics / trend / impl / ItemNode.java
index 699b441ca226c916aa6e725aa8c10a6df6c09b53..402d793f8cc4c34e4fbc15c5d4958f9a3635e26c 100644 (file)
@@ -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) {