Date: prev next · Thread: first prev next last
2011 Archives by date, by thread · List index


Hello,

this patch adds a necessary check for a null pointer.

Regards,
Markus
From 9af8fdaba562e8d8e7f3e4241edc70d282eb1b56 Mon Sep 17 00:00:00 2001
From: Markus Mohrhard <markus.mohrhard@googlemail.com>
Date: Wed, 3 Aug 2011 03:14:55 +0200
Subject: [PATCH] fix for fdo#39773: crash with hidden column in Data->Form

---
 sc/source/ui/miscdlgs/datafdlg.cxx |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/sc/source/ui/miscdlgs/datafdlg.cxx b/sc/source/ui/miscdlgs/datafdlg.cxx
index 10ef3a3..d8774f2 100644
--- a/sc/source/ui/miscdlgs/datafdlg.cxx
+++ b/sc/source/ui/miscdlgs/datafdlg.cxx
@@ -201,7 +201,8 @@ ScDataFormDlg::ScDataFormDlg( Window* pParent, ScTabViewShell*  pTabViewShellOri
                 pFixedTexts[nIndex] = NULL;
                 pEdits[nIndex] = NULL;
             }
-        pEdits[nIndex]->SetModifyHdl( HDL(Impl_DataModifyHdl) );
+            if (pEdits[nIndex])
+                pEdits[nIndex]->SetModifyHdl( HDL(Impl_DataModifyHdl) );
         }
 
         Size nDialogSize = this->GetSizePixel();
-- 
1.7.3.4


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.