fix position set to put the old_position boolean to FALSE, because quick position...
authorcompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Fri, 30 Jul 2004 21:19:04 +0000 (21:19 +0000)
committercompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Fri, 30 Jul 2004 21:19:04 +0000 (21:19 +0000)
git-svn-id: http://ltt.polymtl.ca/svn@653 04897980-b3bd-0310-b5e0-8ef037075253

ltt/branches/poly/ltt/event.c

index 1c2140ef983c9f45b21f0b44ea44271cf8e3e5b5..3bc93857f51954da565fbdd77e888189ea272c7a 100644 (file)
@@ -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;
+  
 }
 
 /*****************************************************************************
This page took 0.024399 seconds and 4 git commands to generate.