summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2017-12-08 00:04:31 +0100
committerEike Rathke <erack@redhat.com>2017-12-08 02:45:05 +0100
commit2f4832a31d1e81ffbe043d9bb1d0816a03b8d137 (patch)
tree7b5698b50f196baabe2c313c281bbc8c5fac09b1
parent83c1260a70b5b440522a1e9b88eb82456896c270 (diff)
Key must be sal_uInt32 instead of sal_Int16 SCCOL, tdf#113861 follow-up
FormulaTokenMapMap key is bit masked left shifted tab value plus column value. And as FormulaTokenMap key was changed from sal_uInt32 to SCROW (which is correct), use that type when assigning. Change-Id: I4c76330378e64cb7dc06a956cbf2c23f4428b658 (cherry picked from commit 78a3f7e10e650bc464202dacd131f9c3b0ddfcdf) Reviewed-on: https://gerrit.libreoffice.org/46061 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Jenkins <ci@libreoffice.org>
-rw-r--r--sc/source/ui/unoobj/chart2uno.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/ui/unoobj/chart2uno.cxx b/sc/source/ui/unoobj/chart2uno.cxx
index 4728efe7ae3c..f42fd4f1fff6 100644
--- a/sc/source/ui/unoobj/chart2uno.cxx
+++ b/sc/source/ui/unoobj/chart2uno.cxx
@@ -242,7 +242,7 @@ vector<ScTokenRef> TokenTable::getAllRanges() const
}
typedef std::map<SCROW, FormulaToken*> FormulaTokenMap;
-typedef std::map<SCCOL, FormulaTokenMap*> FormulaTokenMapMap;
+typedef std::map<sal_uInt32, FormulaTokenMap*> FormulaTokenMapMap;
class Chart2PositionMap
{
@@ -805,7 +805,7 @@ void Chart2Positioner::createPositionMap()
FormulaTokenMap* pFirstCol = pCols->begin()->second;
for (FormulaTokenMap::const_iterator it1 = pFirstCol->begin(); it1 != pFirstCol->end(); ++it1)
{
- sal_uInt32 nKey = it1->first;
+ SCROW nKey = it1->first;
for (FormulaTokenMapMap::const_iterator it2 = pCols->begin(); it2 != pCols->end(); ++it2)
{
pCol = it2->second;