From 738bd2cfd446debbc0e08fb5500004276fa28c7d Mon Sep 17 00:00:00 2001 From: Kohei Yoshida Date: Fri, 7 Feb 2014 11:52:16 -0500 Subject: fdo#74507: Ensure that we have non-null pointer to ScColumn. Else it would cause a null pointer dereferencing when "precision as shown" option is set. Change-Id: Ie8d2fdb916b575fff7e0217c45c18a2c799577cb --- sc/source/core/data/dociter.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sc/source/core/data/dociter.cxx b/sc/source/core/data/dociter.cxx index 188a3fc09ad5..5bb9236057a3 100644 --- a/sc/source/core/data/dociter.cxx +++ b/sc/source/core/data/dociter.cxx @@ -170,7 +170,7 @@ bool ScValueIterator::GetThis(double& rValue, sal_uInt16& rErr) bNextColumn = true; } - ScColumn* pCol = NULL; + ScColumn* pCol = &(pDoc->maTabs[mnTab])->aCol[mnCol]; if (bNextColumn) { // Find the next available column. -- cgit v1.2.3