[Libreoffice-commits] .: Branch 'libreoffice-4-0' - sc/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Sun Dec 23 18:06:16 PST 2012


 sc/source/ui/view/cellsh1.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit b984cb56d70dec578103dae885ec5868582c0ffe
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date:   Mon Dec 24 03:00:32 2012 +0100

    be safe against invalid cond format cell info, fdo#58686
    
    Change-Id: Ie89aee95755d9abd3b82062fac271cfe774174ec

diff --git a/sc/source/ui/view/cellsh1.cxx b/sc/source/ui/view/cellsh1.cxx
index 0fc5dfc..3940c0c 100644
--- a/sc/source/ui/view/cellsh1.cxx
+++ b/sc/source/ui/view/cellsh1.cxx
@@ -1794,6 +1794,9 @@ void ScCellShell::ExecuteEdit( SfxRequest& rReq )
                     {
                         // check if at least one existing conditional format has the same range
                         const ScConditionalFormat* pCondFormat = pList->GetFormat(*itr);
+                        if(!pCondFormat)
+                            continue;
+
                         const ScRangeList& rCondFormatRange = pCondFormat->GetRange();
                         if(rCondFormatRange == aRangeList)
                         {


More information about the Libreoffice-commits mailing list