tmf: Fix integer overflow in time graph calculations
authorPatrick Tasse <patrick.tasse@gmail.com>
Tue, 23 Aug 2016 20:30:24 +0000 (16:30 -0400)
committerPatrick Tasse <patrick.tasse@gmail.com>
Wed, 24 Aug 2016 18:11:17 +0000 (14:11 -0400)
commit1d46761c66a5287c94f6e7c0964b253c24ae6eea
tree6ac502dc08c7d0f5177d14d3253a50099ab7f154
parent7a65e099d459077e5c364dd330f8942a42dca414
tmf: Fix integer overflow in time graph calculations

An x-coordinate very far to the right could overflow to be very far to
the left. This could prevent states and/or their labels to be drawn when
zoomed-in very close.

Change-Id: I6e006d366dfe427a9ac7df1a8f534fe95c230c3d
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/79565
Reviewed-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
tmf/org.eclipse.tracecompass.tmf.ui/src/org/eclipse/tracecompass/tmf/ui/widgets/timegraph/widgets/TimeGraphControl.java
tmf/org.eclipse.tracecompass.tmf.ui/src/org/eclipse/tracecompass/tmf/ui/widgets/timegraph/widgets/TimeGraphScale.java
This page took 0.025071 seconds and 5 git commands to generate.