Add gas change event gets time wrong (and crashes sometimes)

Anton Lundin glance at acc.umu.se
Thu Nov 21 15:10:25 UTC 2013


On 21 November, 2013 - Robert C. Helling wrote:

> Hi,
> 
> just tried the possibility to add a gas change event via the context menu. In most of the cases it seems to add it at 0 seconds into the dive. Inspection of  void ProfileGraphicsView::changeGas() suggests that "seconds" is in the wrong units (fraction of the plot rather than seconds). Multiplying this by current_dive->duration.seconds makes it better but still places it too far to the left. My suspicion is that it gets it wrong by the amount of pixels left of the plot.
> 
> Any ideas?
> 

Works for me?

//Anton

-- 
Anton Lundin	+46702-161604


More information about the subsurface mailing list