ICU-3444 when popping paren stack, reset startSP if we pop below it.

X-SVN-Rev: 14597
This commit is contained in:
Eric Mader 2004-02-26 21:42:08 +00:00
parent c27fc4ad35
commit e954d8c240

View File

@ -298,7 +298,10 @@ uscript_nextRun(UScriptRun *scriptRun, int32_t *pRunStart, int32_t *pRunLimit, U
*/
if (pairIndex >= 0 && (pairIndex & 1) != 0 && scriptRun->parenSP >= 0) {
scriptRun->parenSP -= 1;
startSP -= 1;
if (scriptRun->parenSP < startSP) {
startSP = scriptRun->parenSP;
}
}
} else {
/*