From e5bd3f688c1b63542dff4df8039bdd2640946f3e Mon Sep 17 00:00:00 2001 From: akl Date: Mon, 22 Apr 2013 10:36:36 +0000 Subject: [PATCH] Indexation of OCC sequence is started from 1, but not 0. --- src/SMESH_I/SMESH_2smeshpy.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ); } } } -- 2.30.2