Indexation of OCC sequence is started from 1, but not 0.

This commit is contained in:
akl 2013-04-22 10:36:36 +00:00
parent 51f6c9cec0
commit e5bd3f688c

View File

@ -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 );
}
}
}