Salome HOME
refs #1211: crash in two polylines creation hydro/imps_2017
authorasl <asl@opencascade.com>
Fri, 14 Apr 2017 08:34:47 +0000 (11:34 +0300)
committerasl <asl@opencascade.com>
Fri, 14 Apr 2017 08:34:47 +0000 (11:34 +0300)
src/CurveCreator/CurveCreator_TreeView.cxx

index 6a8ecec53101ef42b2c9143490fc1edd56aaf15e..89f2606c3586f3eb1832f526c465a87b8dd68a37 100644 (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
 }