summaryrefslogtreecommitdiff
path: root/sc/source/core/data
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@collabora.com>2013-11-07 13:21:13 -0500
committerKohei Yoshida <kohei.yoshida@collabora.com>2013-11-11 16:17:27 -0500
commit94934248e73defcf96d2e58089b0a731b191f015 (patch)
tree3ecb22ee3041d736ee371de7e03ddede86b4d3cd /sc/source/core/data
parentfd50b465b94203e9980368481c579178cf93483a (diff)
Make this thread safe too.
Change-Id: Ic8508f693f8a6e9bae513d6b5b6eaaaae618194b
Diffstat (limited to 'sc/source/core/data')
-rw-r--r--sc/source/core/data/mtvelements.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/sc/source/core/data/mtvelements.cxx b/sc/source/core/data/mtvelements.cxx
index 222aabd0334d..5a946067e032 100644
--- a/sc/source/core/data/mtvelements.cxx
+++ b/sc/source/core/data/mtvelements.cxx
@@ -30,6 +30,8 @@ ColumnBlockPositionSet::ColumnBlockPositionSet(ScDocument& rDoc) : mrDoc(rDoc) {
ColumnBlockPosition* ColumnBlockPositionSet::getBlockPosition(SCTAB nTab, SCCOL nCol)
{
+ osl::MutexGuard aGuard(&maMtxTables);
+
TablesType::iterator itTab = maTables.find(nTab);
if (itTab == maTables.end())
{