I completely agree with you that "it is not the job of Qwt to deal with any type of nonsense the application code does". However, as far as I can tell, my code provides valid double values. Also, my code doesn't provide any step size to setAxisScale(). It only does something like:
myPlot
->setAxisScale
(QwtPlot::xBottom, xMin, xMax
);
myPlot->setAxisScale(QwtPlot::xBottom, xMin, xMax);
To copy to clipboard, switch view to plain text mode
and xMin might be equal to -DBL_MAX and xMax to DBL_MAX (both of which being valid double values indeed). So, in some cases, my call to setAxisScale() might be something like:
myPlot
->setAxisScale
(QwtPlot::xBottom,
-DBL_MAX,
DBL_MAX);
myPlot->setAxisScale(QwtPlot::xBottom, -DBL_MAX, DBL_MAX);
To copy to clipboard, switch view to plain text mode
and it is in this kind of case that QwtPlot will crash my application, unless I edit the Qwt code as I mentioned in my original message.
Bookmarks