Kaydet (Commit) 50bbd1ae authored tarafından Fridrich Štrba's avatar Fridrich Štrba

Fix ooo51302-1.ods: check for special index value of -1

Change-Id: I3fbb700300d18a878cbf23c94e35bc69f864824b
üst d9a888fc
...@@ -374,7 +374,7 @@ sal_Int32 ScRangeStringConverter::IndexOf( ...@@ -374,7 +374,7 @@ sal_Int32 ScRangeStringConverter::IndexOf(
sal_Bool bQuoted = false; sal_Bool bQuoted = false;
sal_Bool bExitLoop = false; sal_Bool bExitLoop = false;
while( !bExitLoop && (nIndex < nLength) ) while( !bExitLoop && (nIndex >= 0 && nIndex < nLength) )
{ {
sal_Unicode cCode = rString[ nIndex ]; sal_Unicode cCode = rString[ nIndex ];
bExitLoop = (cCode == cSearchChar) && !bQuoted; bExitLoop = (cCode == cSearchChar) && !bQuoted;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment