git-svn-id: http://ltt.polymtl.ca/svn@381 04897980-b3bd-0310-b5e0-8ef037075253
authoryangxx <yangxx@04897980-b3bd-0310-b5e0-8ef037075253>
Thu, 15 Jan 2004 17:00:38 +0000 (17:00 +0000)
committeryangxx <yangxx@04897980-b3bd-0310-b5e0-8ef037075253>
Thu, 15 Jan 2004 17:00:38 +0000 (17:00 +0000)
ltt/branches/poly/lttv/modules/gui/mainWin/src/callbacks.c

index 6a50d79de536c942250a417933e7f8b7e791a54b..9e3ab41053526d803695631ecb7dd8381d8971ee 100644 (file)
@@ -544,6 +544,8 @@ void zoom(GtkWidget * widget, double size)
   LttTime    current_time, time_delta, time_s, time_e, time_t;
   MainWindow * mw_data = get_window_data_struct(widget);
 
+  if(size == 1) return;
+
   time_span = LTTV_TRACESET_CONTEXT(mw_data->current_tab->
                                    traceset_info->traceset_context)->Time_Span;
   time_window =  mw_data->current_tab->time_window;
@@ -556,7 +558,7 @@ void zoom(GtkWidget * widget, double size)
   }else{
     time_window.time_width = ltt_time_div(time_window.time_width, size);
     if(ltt_time_compare(time_window.time_width,time_delta) > 0)
-      time_window.time_width = time_delta;        
+      time_window.time_width = time_delta;
 
     time_t = ltt_time_div(time_window.time_width, 2);
     if(ltt_time_compare(current_time, time_t) < 0){
This page took 0.026989 seconds and 4 git commands to generate.