get name only if necessary
[lttv.git] / ltt / branches / poly / lttv / modules / gui / controlflow / drawing.c
index 1f4100ee96d5c33d05ef13a8491ce3f172804384..bcda5b22f0a1babaf03af4222393d909819b0c5e 100644 (file)
@@ -144,6 +144,8 @@ void drawing_data_request(Drawing_t *drawing,
   convert_pixels_to_time(drawing->width, x+width,
         time_window,
         &time_end);
+  time_end = ltt_time_add(time_end, ltt_time_one); // because main window
+                                                   // doesn't deliver end time.
 
   lttvwindow_events_request_remove_all(tab,
                                        control_flow_data);
@@ -410,6 +412,10 @@ void drawing_data_request_begin(EventsRequest *events_request, LttvTracesetState
 
   g_hash_table_foreach(cfd->process_list->process_hash, set_last_start,
                             (gpointer)x);
+
+  cfd->process_list->current_process_info = NULL;
+  cfd->process_list->current_hash_data = NULL;
+
 }
 
 void drawing_chunk_begin(EventsRequest *events_request, LttvTracesetState *tss)
@@ -917,7 +923,7 @@ GtkWidget *drawing_get_widget(Drawing_t *drawing)
  *
  * Convert from window pixel and time interval to an absolute time.
  */
-__inline void convert_pixels_to_time(
+__inline__ void convert_pixels_to_time(
     gint width,
     guint x,
     TimeWindow time_window,
@@ -932,7 +938,7 @@ __inline void convert_pixels_to_time(
 }
 
 
-__inline void convert_time_to_pixels(
+__inline__ void convert_time_to_pixels(
     TimeWindow time_window,
     LttTime time,
     int width,
This page took 0.026633 seconds and 4 git commands to generate.