sc/source/ui/condformat/condformatdlgentry.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit b7d877c4c18000e4d4653a7858e5b1578a73bef5
Author: Katarina Behrens <katarina.behr...@cib.de>
Date:   Sat Aug 29 17:12:42 2015 +0200

    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 <c...@libreoffice.org>
    Reviewed-by: Markus Mohrhard <markus.mohrh...@googlemail.com>
    Tested-by: Markus Mohrhard <markus.mohrh...@googlemail.com>

diff --git a/sc/source/ui/condformat/condformatdlgentry.cxx 
b/sc/source/ui/condformat/condformatdlgentry.cxx
index 7785c0d..cee9abc 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));
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to