From 537b2d7f25594609d335248faea9532ae9a2a8b6 Mon Sep 17 00:00:00 2001 From: compudj Date: Fri, 30 Jul 2004 21:19:04 +0000 Subject: [PATCH] fix position set to put the old_position boolean to FALSE, because quick position seek is impossible in that case git-svn-id: http://ltt.polymtl.ca/svn@653 04897980-b3bd-0310-b5e0-8ef037075253 --- ltt/branches/poly/ltt/event.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ltt/branches/poly/ltt/event.c b/ltt/branches/poly/ltt/event.c index 1c2140ef..3bc93857 100644 --- a/ltt/branches/poly/ltt/event.c +++ b/ltt/branches/poly/ltt/event.c @@ -267,6 +267,8 @@ void ltt_event_position_get(LttEventPosition *ep, /***************************************************************************** *Function name * ltt_event_position_set : set the block number and index of the event + * It does put the old_position gboolean to FALSE, as it is impossible + * to know the quick position to seek in the tracefile. *Input params * ep : a pointer to event's position structure * block_number : the block number of the event @@ -276,8 +278,12 @@ void ltt_event_position_get(LttEventPosition *ep, void ltt_event_position_set(LttEventPosition *ep, unsigned block_number, unsigned index_in_block) { + if(ep->block_num != block_number || ep->event_num != index_in_block) + ep->old_position = FALSE; + ep->block_num = block_number; - ep->event_num = index_in_block; + ep->event_num = index_in_block; + } /***************************************************************************** -- 2.34.1