Salome HOME
projects
/
modules
/
geom.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6bc36af
)
refs #1211: crash in two polylines creation
hydro/imps_2017
author
asl
<asl@opencascade.com>
Fri, 14 Apr 2017 08:34:47 +0000
(11:34 +0300)
committer
asl
<asl@opencascade.com>
Fri, 14 Apr 2017 08:34:47 +0000
(11:34 +0300)
src/CurveCreator/CurveCreator_TreeView.cxx
patch
|
blob
|
history
diff --git
a/src/CurveCreator/CurveCreator_TreeView.cxx
b/src/CurveCreator/CurveCreator_TreeView.cxx
index 6a8ecec53101ef42b2c9143490fc1edd56aaf15e..89f2606c3586f3eb1832f526c465a87b8dd68a37 100644
(file)
--- 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
}