From fda16332eab0088d07b2269754af75aaa27e736f Mon Sep 17 00:00:00 2001 From: yangxx Date: Thu, 15 Jan 2004 17:00:38 +0000 Subject: [PATCH] git-svn-id: http://ltt.polymtl.ca/svn@381 04897980-b3bd-0310-b5e0-8ef037075253 --- ltt/branches/poly/lttv/modules/gui/mainWin/src/callbacks.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ltt/branches/poly/lttv/modules/gui/mainWin/src/callbacks.c b/ltt/branches/poly/lttv/modules/gui/mainWin/src/callbacks.c index 6a50d79d..9e3ab410 100644 --- a/ltt/branches/poly/lttv/modules/gui/mainWin/src/callbacks.c +++ b/ltt/branches/poly/lttv/modules/gui/mainWin/src/callbacks.c @@ -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){ -- 2.34.1