diff options
author | Katarina Behrens <Katarina.Behrens@cib.de> | 2015-08-29 17:12:42 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2015-08-30 20:48:46 +0000 |
commit | b7d877c4c18000e4d4653a7858e5b1578a73bef5 (patch) | |
tree | f6de302fa1c1435e71fd9413b09b14d3c1e59ce0 /sc | |
parent | c952516a2821dd7077691e88ebcb7cba36aae97a (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>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/condformat/condformatdlgentry.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/condformat/condformatdlgentry.cxx b/sc/source/ui/condformat/condformatdlgentry.cxx index 7785c0dd81a0..cee9abcc0bb5 100644 --- a/sc/source/ui/condformat/condformatdlgentry.cxx +++ b/sc/source/ui/condformat/condformatdlgentry.cxx @@ -311,7 +311,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)); |