From: asl Date: Fri, 14 Apr 2017 08:34:47 +0000 (+0300) Subject: refs #1211: crash in two polylines creation X-Git-Tag: Salome_8_3_Hydro_1_1rc1~1^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9f8e032d92ac2366efee367a847e44f49b9fe1c0;p=modules%2Fgeom.git refs #1211: crash in two polylines creation --- diff --git a/src/CurveCreator/CurveCreator_TreeView.cxx b/src/CurveCreator/CurveCreator_TreeView.cxx index 6a8ecec53..89f2606c3 100644 --- a/src/CurveCreator/CurveCreator_TreeView.cxx +++ b/src/CurveCreator/CurveCreator_TreeView.cxx @@ -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 }