refs #1211: crash in two polylines creation

This commit is contained in:
asl 2017-04-14 11:34:47 +03:00
parent 6bc36af9f0
commit 9f8e032d92

View File

@ -212,9 +212,13 @@ int CurveCreator_TreeViewModel::getPoint( const QModelIndex& theIndx ) const
void CurveCreator_TreeViewModel::setCurve( CurveCreator_ICurve* theCurve )
{
myCurve = theCurve;
#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
myCurve = theCurve;
reset();
#else
beginResetModel();
myCurve = theCurve;
endResetModel();
#endif
}