From: akl Date: Mon, 22 Apr 2013 10:36:36 +0000 (+0000) Subject: Indexation of OCC sequence is started from 1, but not 0. X-Git-Tag: V7_2_0rc1~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e5bd3f688c1b63542dff4df8039bdd2640946f3e;p=modules%2Fsmesh.git Indexation of OCC sequence is started from 1, but not 0. --- diff --git a/src/SMESH_I/SMESH_2smeshpy.cxx b/src/SMESH_I/SMESH_2smeshpy.cxx index cabe36237..7d5e9f23e 100644 --- a/src/SMESH_I/SMESH_2smeshpy.cxx +++ b/src/SMESH_I/SMESH_2smeshpy.cxx @@ -3715,9 +3715,9 @@ void _pyCommand::Comment() myString.Insert( i, "#" ); for ( int iPart = 0; iPart < myBegPos.Length(); ++iPart ) { - int begPos = GetBegPos( iPart ); + int begPos = GetBegPos( iPart + 1 ); if ( begPos != UNKNOWN ) - SetBegPos( iPart, begPos + 1 ); + SetBegPos( iPart + 1, begPos + 1 ); } } }