summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@collabora.com>2014-02-07 11:52:16 -0500
committerKohei Yoshida <kohei.yoshida@collabora.com>2014-02-07 12:00:39 -0500
commit738bd2cfd446debbc0e08fb5500004276fa28c7d (patch)
tree859f97d215bcc03f090bc49d8efc604aafeb4f15
parent6437313bdba12836d9e472654ad402601af58077 (diff)
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
-rw-r--r--sc/source/core/data/dociter.cxx2
1 files changed, 1 insertions, 1 deletions
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.