summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorIvan Timofeev <timofeev.i.s@gmail.com>2012-03-28 18:54:13 +0400
committerIvan Timofeev <timofeev.i.s@gmail.com>2012-03-28 21:23:27 +0400
commit8affd7e908fe695c548da702cafe76a8b031fdef (patch)
tree09b72e9df550e505aeaa10e43e9320e4f10a62eb /sc
parent8627b0a297d6a2b7461bb53da2f434c397cb2603 (diff)
this iterator should point to where the insert should start to search
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/tool/chartpos.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/core/tool/chartpos.cxx b/sc/source/core/tool/chartpos.cxx
index cdc27f64b6ca..0d963f12aca4 100644
--- a/sc/source/core/tool/chartpos.cxx
+++ b/sc/source/core/tool/chartpos.cxx
@@ -399,7 +399,7 @@ void ScChartPositioner::CreatePositionMap()
if ( it == pCols->end() )
{
pCol = new RowMap;
- pCols->insert(it, ColumnMap::value_type( nInsCol, pCol ) );
+ pCols->insert( ColumnMap::value_type( nInsCol, pCol ) );
}
else
pCol = it->second;
@@ -412,7 +412,7 @@ void ScChartPositioner::CreatePositionMap()
RowMap::const_iterator it = pCol->find( nInsRow );
if ( it == pCol->end() )
{
- pCol->insert(it, RowMap::value_type( nInsRow, new ScAddress( nCol, nRow, nTab ) ) );
+ pCol->insert( RowMap::value_type( nInsRow, new ScAddress( nCol, nRow, nTab ) ) );
}
}
}