list end of trace fix with selection
authorcompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Wed, 7 Sep 2005 23:55:49 +0000 (23:55 +0000)
committercompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Wed, 7 Sep 2005 23:55:49 +0000 (23:55 +0000)
git-svn-id: http://ltt.polymtl.ca/svn@1154 04897980-b3bd-0310-b5e0-8ef037075253

ltt/branches/poly/lttv/modules/gui/detailedevents/events.c

index 0b89478670f5e06fcc61c25150d8a2b805fa31b3..8b4656b9cf3bce166eb2bb6b48a9952e51455773 100644 (file)
@@ -935,10 +935,13 @@ void tree_v_cursor_changed_cb (GtkWidget *widget, gpointer data)
     if(gtk_tree_model_get_iter(model,&iter,path)){
       gtk_tree_model_get(model, &iter, POSITION_COLUMN, &pos, -1);
       
+      if(lttv_traceset_context_pos_pos_compare(pos, 
+            event_viewer_data->currently_selected_position) != 0)
         lttvwindow_report_current_position(tab, pos);
     }else{
       g_warning("Can not get iter\n");
     }
+    gtk_tree_path_free(path);
   }
 }
 
@@ -1236,6 +1239,9 @@ static void get_events(double new_value, EventViewerData *event_viewer_data)
     
     time = lttv_traceset_context_position_get_time(
                                             event_viewer_data->first_event);
+    //if(ltt_time_compare(time, tsc->time_span.end_time) > 0)
+    //  time = tsc->time_span.end_time;
+
     LttTime time_val = ltt_time_sub(time,
                         tsc->time_span.start_time);
     event_viewer_data->previous_value = ltt_time_to_double(time_val);
This page took 0.024945 seconds and 4 git commands to generate.