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

Dirk Hohndel dirk at hohndel.org
Thu Nov 21 15:47:11 UTC 2013


On Fri, 2013-11-22 at 00:10 +0100, Anton Lundin wrote:
> 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?

And me. Let me try this on my Mac to see if that's the issue.

/D



More information about the subsurface mailing list