summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKatarina Behrens <Katarina.Behrens@cib.de>2015-08-29 17:12:42 +0200
committerThorsten Behrens <Thorsten.Behrens@CIB.de>2015-09-01 22:13:15 +0000
commitf2a367ffa4bb20ceb2bab11d8895653bf0d1309d (patch)
tree14c2c5999086affe4edc96e51d950315d2775d55
parent315cd7896e8b4193fe1b13a2d58d97446f9d1d87 (diff)
tdf#93600: Avoid crash on entering '=' as a cell value
To match formulas, 'formula is' condition should be used instead Change-Id: I37a9a2680c49bffcb8b25a11faedc1421cfa2d00 Reviewed-on: https://gerrit.libreoffice.org/18126 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Reviewed-on: https://gerrit.libreoffice.org/18159 Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
-rw-r--r--sc/source/ui/condformat/condformatdlgentry.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/condformat/condformatdlgentry.cxx b/sc/source/ui/condformat/condformatdlgentry.cxx
index 018e7e8395dd..79cf58f1c5a3 100644
--- a/sc/source/ui/condformat/condformatdlgentry.cxx
+++ b/sc/source/ui/condformat/condformatdlgentry.cxx
@@ -313,7 +313,7 @@ IMPL_LINK(ScConditionFrmtEntry, OnEdChanged, Edit*, pEdit)
boost::scoped_ptr<ScTokenArray> ta(aComp.CompileString(aFormula));
// Error, warn the user
- if( ta->GetCodeError() )
+ if( ta->GetCodeError() || ( ta->GetLen() == 0 ) )
{
pEdit->SetControlBackground(COL_LIGHTRED);
maFtVal->SetText(ScGlobal::GetRscString(STR_VALID_DEFERROR));