[Libreoffice-commits] .: sc/source

Caolán McNamara caolan at kemper.freedesktop.org
Wed Nov 10 03:14:47 PST 2010


 sc/source/ui/view/viewfun4.cxx |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit 3e992c6e9cb82548694a9008e66cd5ea561afcd1
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Wed Nov 10 11:06:20 2010 +0000

    #i106768# deference followed by check of pointer

diff --git a/sc/source/ui/view/viewfun4.cxx b/sc/source/ui/view/viewfun4.cxx
index 58ca336..976f8c2 100644
--- a/sc/source/ui/view/viewfun4.cxx
+++ b/sc/source/ui/view/viewfun4.cxx
@@ -393,9 +393,11 @@ void ScViewFunc::DoThesaurus( BOOL bRecord )
         if (pCell)
         {
             ((ScEditCell*) pCell)->GetData(pTObject);
-            pOldTObj = pTObject->Clone();
             if (pTObject)
+            {
+                pOldTObj = pTObject->Clone();
                 pThesaurusEngine->SetText(*pTObject);
+            }
         }
     }
     else


More information about the Libreoffice-commits mailing list