5e41203
From fe44d66adbab17b804a27d91148490b23fce75da Mon Sep 17 00:00:00 2001
5e41203
From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= <caolanm@redhat.com>
5e41203
Date: Fri, 17 Jun 2011 16:14:12 +0100
5e41203
Subject: [PATCH] Related: rhbz#711087 band-aid
5e41203
5e41203
---
5e41203
 sc/source/ui/undo/undoblk.cxx |    3 +++
5e41203
 1 files changed, 3 insertions(+), 0 deletions(-)
5e41203
5e41203
diff --git a/sc/source/ui/undo/undoblk.cxx b/sc/source/ui/undo/undoblk.cxx
5e41203
index 8439801..d535c9c 100644
5e41203
--- a/sc/source/ui/undo/undoblk.cxx
5e41203
+++ b/sc/source/ui/undo/undoblk.cxx
5e41203
@@ -2084,6 +2084,9 @@ void ScUndoRemoveMerge::Undo()
5e41203
     for (set<SCTAB>::const_iterator itr = maOption.maTabs.begin(), itrEnd = maOption.maTabs.end();
5e41203
           itr != itrEnd; ++itr)
5e41203
     {
5e41203
+        OSL_ENSURE(pUndoDoc, "NULL pUndoDoc!");
5e41203
+        if (!pUndoDoc)
5e41203
+            continue;
5e41203
         // There is no need to extend merge area because it's already been extended.
5e41203
         ScRange aRange = maOption.getSingleRange(*itr);
5e41203
         pDoc->DeleteAreaTab(aRange, IDF_ATTRIB);
5e41203
-- 
5e41203
1.7.5.4
5e41203