<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 11.09.2015, at 12:07, Guido Lerch <<a href="mailto:guido.lerch@gmail.com" class="">guido.lerch@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><span id="cid:ii_14fbbde7f4b33c5c"><image.png></span><br class=""><div class="">If I click EAN, crash ...</div><div class=""><br class=""></div><div class="">I run this in debug more from QT Creator</div><div class=""><span id="cid:ii_14fbbdf3a7d4fade"><image.png></span><br class=""></div></div></div></blockquote></div><div class=""><br class=""></div>To analyze this further in the debugger I would double click on the line of level 7 in the stack trace (DivePlannerPointsModel::gas change(…) since that is the last line of subsurface code. This brings be into the definition of that method and I can inspect the local variables to see that we are calling with an index -1.<div class=""><br class=""></div><div class="">This is because we are trying to change the gas of a non-existing segement as changing the gas via the waypoint context menu means doing a gas change there and thus using the new gas on the following legs. Except for the last waypoint, there are no following legs as those are only inserted by the planner and that handles gases by itself.</div><div class=""><br class=""></div><div class="">So here is a patch that prevents offering a gas change there.</div><div class=""><br class=""></div><div class="">Best</div><div class="">Robert</div><div class=""><br class=""></div><div class=""></div></body></html>