Kaydet (Commit) f2a367ff authored tarafından Katarina Behrens's avatar Katarina Behrens Kaydeden (comit) Thorsten Behrens

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/18126Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarMarkus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: 's avatarMarkus Mohrhard <markus.mohrhard@googlemail.com>
Reviewed-on: https://gerrit.libreoffice.org/18159Reviewed-by: 's avatarThorsten Behrens <Thorsten.Behrens@CIB.de>
üst 315cd789
...@@ -313,7 +313,7 @@ IMPL_LINK(ScConditionFrmtEntry, OnEdChanged, Edit*, pEdit) ...@@ -313,7 +313,7 @@ IMPL_LINK(ScConditionFrmtEntry, OnEdChanged, Edit*, pEdit)
boost::scoped_ptr<ScTokenArray> ta(aComp.CompileString(aFormula)); boost::scoped_ptr<ScTokenArray> ta(aComp.CompileString(aFormula));
// Error, warn the user // Error, warn the user
if( ta->GetCodeError() ) if( ta->GetCodeError() || ( ta->GetLen() == 0 ) )
{ {
pEdit->SetControlBackground(COL_LIGHTRED); pEdit->SetControlBackground(COL_LIGHTRED);
maFtVal->SetText(ScGlobal::GetRscString(STR_VALID_DEFERROR)); maFtVal->SetText(ScGlobal::GetRscString(STR_VALID_DEFERROR));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment