Fix that seeking was wrong if frame time was modified
authorRoland Schulz <roland@utk.edu>
Sat, 14 Jun 2014 01:07:43 +0000 (21:07 -0400)
committerRoland Schulz <roland@rschulz.eu>
Fri, 20 Jun 2014 10:36:43 +0000 (12:36 +0200)
commit81d10b25fc5a4cf2c84b7975e492e2284e392b17
tree9ddfbf242d380a575a64f81cb1a669d0015c4ee9
parent0b396d5fccc6f838f95db4ceba5d54dea8e97374
Fix that seeking was wrong if frame time was modified

The trjconv -t0 option causes fr->time to be modified and
this then causes the skipping to be incorrect. Alternative
we could document that fr->time shouldn't be modified
and change that trjconv makes a copy of fr before changing
time. This change has the advantage it is less likely
to reintroduce the problem.

Fixes #1405, #1406

Change-Id: Ibd692dfecdf175450fc43f7f35b774bf4446b316
include/types/trx.h
src/gmxlib/trxio.c