mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-28 02:10:35 +05:00
Indexation of OCC sequence is started from 1, but not 0.
This commit is contained in:
parent
51f6c9cec0
commit
e5bd3f688c
@ -3715,9 +3715,9 @@ void _pyCommand::Comment()
|
|||||||
myString.Insert( i, "#" );
|
myString.Insert( i, "#" );
|
||||||
for ( int iPart = 0; iPart < myBegPos.Length(); ++iPart )
|
for ( int iPart = 0; iPart < myBegPos.Length(); ++iPart )
|
||||||
{
|
{
|
||||||
int begPos = GetBegPos( iPart );
|
int begPos = GetBegPos( iPart + 1 );
|
||||||
if ( begPos != UNKNOWN )
|
if ( begPos != UNKNOWN )
|
||||||
SetBegPos( iPart, begPos + 1 );
|
SetBegPos( iPart + 1, begPos + 1 );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user