opencor/qwt

Crash in qwt_date_scale_engine.cpp

Closed this issue · 1 comments

oss81 commented

Hi,

the function

static QList< double > qwtDstTicks( const QDateTime& dateTime, int secondsMajor, int secondsMinor )

crashes when secondsMajor is 0

I guess the code at the start
if ( secondsMinor <= 0 ) QList< double >();

should be
if ( secondsMinor <= 0 ) return QList< double >();

Sorry for not noticing your issue before, but you may have since noticed that this repo is only a fork of the original Qwt repo. For support, please have a look here.