Well, the crash doesn't happen on my linux box, but my guess is, that the legend is already destructed when the plot items are going to be removed.
I have added the following line to the destructor of QwtPolarPlot:
QwtPolarPlot::~QwtPolarPlot()
{
detachItems( QwtPolarItem::Rtti_PolarItem, autoDelete() );
...
}
QwtPolarPlot::~QwtPolarPlot()
{
detachItems( QwtPolarItem::Rtti_PolarItem, autoDelete() );
...
}
To copy to clipboard, switch view to plain text mode
Please do the same and let me know if the crash is gone.
Uwe
Bookmarks