From 8b4293b5e1ce2463aa7b6907e5ed015c89e03652 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Genevi=C3=A8ve=20Bastien?= Date: Wed, 19 Nov 2014 10:45:31 -0500 Subject: [PATCH] TMF: Call postDrawEvent also for transparent events in time graph control MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit The color of an event may be transparent, but it may contain data that needs to be displayed through the postDrawEvent callback, so it should be called before returning. Change-Id: Ic672a1aeb781c89b9da2da9670e2b6f4968c3c43 Signed-off-by: Geneviève Bastien Reviewed-on: https://git.eclipse.org/r/36702 Reviewed-by: Marc-Andre Laperle Tested-by: Marc-Andre Laperle Tested-by: Hudson CI --- .../tmf/ui/widgets/timegraph/widgets/TimeGraphControl.java | 1 + 1 file changed, 1 insertion(+) diff --git a/org.eclipse.tracecompass.tmf.ui/src/org/eclipse/tracecompass/tmf/ui/widgets/timegraph/widgets/TimeGraphControl.java b/org.eclipse.tracecompass.tmf.ui/src/org/eclipse/tracecompass/tmf/ui/widgets/timegraph/widgets/TimeGraphControl.java index fcd300d492..04664d987b 100644 --- a/org.eclipse.tracecompass.tmf.ui/src/org/eclipse/tracecompass/tmf/ui/widgets/timegraph/widgets/TimeGraphControl.java +++ b/org.eclipse.tracecompass.tmf.ui/src/org/eclipse/tracecompass/tmf/ui/widgets/timegraph/widgets/TimeGraphControl.java @@ -1835,6 +1835,7 @@ public class TimeGraphControl extends TimeGraphBaseControl if (rect.width == 1) { gc.drawPoint(rect.x, rect.y - 2); } + fTimeGraphProvider.postDrawEvent(event, rect, gc); return false; } Color stateColor = null; -- 2.34.1