[sysprof/wip/visualizers] visualizer-view: fix logic on swapping times



commit 59cbd8fc3f17bd12106126cc63fa0b99c016bc83
Author: Christian Hergert <chergert redhat com>
Date:   Mon Oct 3 16:06:00 2016 -0700

    visualizer-view: fix logic on swapping times

 lib/sp-visualizer-view.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/lib/sp-visualizer-view.c b/lib/sp-visualizer-view.c
index 4be1efe..96763b2 100644
--- a/lib/sp-visualizer-view.c
+++ b/lib/sp-visualizer-view.c
@@ -95,7 +95,7 @@ sp_visualizer_view_set_time_range (SpVisualizerView *self,
 
   g_assert (SP_IS_VISUALIZER_VIEW (self));
 
-  if (begin_time < end_time)
+  if (end_time < begin_time)
     {
       gint64 tmp = begin_time;
       begin_time = end_time;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]