[Libreoffice-commits] core.git: sc/source
Eike Rathke
erack at redhat.com
Mon Nov 18 14:14:00 PST 2013
sc/source/ui/app/inputhdl.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 257521e7092848793bf2538780468d95ccb69331
Author: Eike Rathke <erack at redhat.com>
Date: Mon Nov 18 23:12:37 2013 +0100
fixed out-of-bounds string access
Change-Id: I89e005f6f2d35e3343077b3b28e9fbb5135f9fff
diff --git a/sc/source/ui/app/inputhdl.cxx b/sc/source/ui/app/inputhdl.cxx
index ad51f49..05de585 100644
--- a/sc/source/ui/app/inputhdl.cxx
+++ b/sc/source/ui/app/inputhdl.cxx
@@ -2753,7 +2753,7 @@ void ScInputHandler::EnterHandler( sal_uInt8 nBlockMode )
{
// keine typographische Anfuehrungszeichen in Formeln
- if (aString[0] == '=')
+ if (!aString.isEmpty() && aString[0] == '=')
{
SvxAutoCorrect* pAuto = SvxAutoCorrCfg::Get().GetAutoCorrect();
if ( pAuto )
More information about the Libreoffice-commits
mailing list