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 00:06:13 +0100
commit78a3f7e10e650bc464202dacd131f9c3b0ddfcdf (patch)
treea39bcd7555601f1d868613213bd788040a7a8df3
parent96829f75aa29411060a60c45f9553be3722b5247 (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
-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;