diff options
author | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2013-06-03 14:51:24 +0200 |
---|---|---|
committer | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2013-06-03 14:52:05 +0200 |
commit | 50bbd1aefe0c78c254a18cc6e1dfeaf5c6858112 (patch) | |
tree | ae13b8841aa1c4f432ce1be2dc82d7c23ed7e127 | |
parent | d9a888fcd2d667c6b2932cd7d1a4bd33ae4796f7 (diff) |
Fix ooo51302-1.ods: check for special index value of -1
Change-Id: I3fbb700300d18a878cbf23c94e35bc69f864824b
-rw-r--r-- | sc/source/core/tool/rangeutl.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/tool/rangeutl.cxx b/sc/source/core/tool/rangeutl.cxx index 054c61f1b605..1fbf0074f3c8 100644 --- a/sc/source/core/tool/rangeutl.cxx +++ b/sc/source/core/tool/rangeutl.cxx @@ -374,7 +374,7 @@ sal_Int32 ScRangeStringConverter::IndexOf( sal_Bool bQuoted = false; sal_Bool bExitLoop = false; - while( !bExitLoop && (nIndex < nLength) ) + while( !bExitLoop && (nIndex >= 0 && nIndex < nLength) ) { sal_Unicode cCode = rString[ nIndex ]; bExitLoop = (cCode == cSearchChar) && !bQuoted; |