Fix for bug 357525 (fix for endless loop)
authorBernd Hufmann <bhufmann@gmail.com>
Tue, 13 Sep 2011 17:31:57 +0000 (13:31 -0400)
committerBernd Hufmann <bhufmann@gmail.com>
Tue, 13 Sep 2011 17:31:57 +0000 (13:31 -0400)
org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/viewers/timeAnalysis/widgets/TimeScaleCtrl.java

index a013ad1d57a9db2f7e8be8689c88b985316b68f9..a55e89ef55f0eb15c696c63eb25279c175ca00e9 100644 (file)
@@ -284,7 +284,7 @@ public class TimeScaleCtrl extends TraceCtrl implements MouseListener,
                                if (x + _rect0.width <= rect.x + rect.width)\r
                                        timeDraw.draw(gc, time, _rect0);\r
                        }\r
-                       if (pixelsPerNanoSec == 0 || time > Long.MAX_VALUE - _timeDelta) {\r
+                       if (pixelsPerNanoSec == 0 || time > Long.MAX_VALUE - _timeDelta || _timeDelta == 0) {\r
                            break;\r
                        }\r
                        time += _timeDelta;\r
This page took 0.028126 seconds and 5 git commands to generate.