diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-10-24 12:40:03 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-10-24 13:33:00 +0100 |
commit | d05918d42a6af99758118970733cd77cb218f28e (patch) | |
tree | 34e6c72e3cdd0b6d91776caffbc43295ee4c0463 /sc/source/ui/app | |
parent | 266e9392acf4fc6bbe5cc609e3874bfc91e93607 (diff) |
aStr[0] on an empty string is newly disallowed
Change-Id: I0494f06ec8709fdf33ace6772823d7b986ff5847
Diffstat (limited to 'sc/source/ui/app')
-rw-r--r-- | sc/source/ui/app/inputhdl.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/app/inputhdl.cxx b/sc/source/ui/app/inputhdl.cxx index 209308e4e0f1..87713ec1c98c 100644 --- a/sc/source/ui/app/inputhdl.cxx +++ b/sc/source/ui/app/inputhdl.cxx @@ -2069,7 +2069,7 @@ bool ScInputHandler::StartTable( sal_Unicode cTyped, bool bFromCommand, bool bIn if ( bAutoComplete ) GetColData(); - if ( ( aStr[0] == '=' || aStr[0] == '+' || aStr[0] == '-' ) && + if ( !aStr.isEmpty() && ( aStr[0] == '=' || aStr[0] == '+' || aStr[0] == '-' ) && !cTyped && !bCreatingFuncView ) InitRangeFinder(aStr); // Formel wird editiert -> RangeFinder |