diff options
author | Eike Rathke <erack@redhat.com> | 2018-10-04 19:06:34 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2018-10-04 19:08:14 +0200 |
commit | cc354c104e09a2f35faf06a3df9d044ced94d6a9 (patch) | |
tree | cd0321cb1c903c71e00650dd51b615f462f4e800 | |
parent | 5b41a01d7409fe7ba939ff952caa5a90f9b81772 (diff) |
Resolves: tdf#120238 remove wrong assert()
There may be a non-empty RowMap even if
nColCount == 0 || nRowCount == 0
if there was only one column or row (or cell) selected and
bRowHeaders and/or bColHeaders were set, thus nColCount and/or
nRowCount were decremented by 1.
Regression from
commit b1f9aa5f58ea322097998839e00d95fc40be8b22
CommitDate: Fri Sep 28 09:04:07 2018 +0200
loplugin:useuniqueptr in ScChartPositionMap
Change-Id: I942e3fcc92449da57d708f654000387f862a4066
-rw-r--r-- | sc/source/core/tool/chartpos.cxx | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/sc/source/core/tool/chartpos.cxx b/sc/source/core/tool/chartpos.cxx index be4a515db9eb..d92a891481b3 100644 --- a/sc/source/core/tool/chartpos.cxx +++ b/sc/source/core/tool/chartpos.cxx @@ -406,7 +406,6 @@ void ScChartPositioner::CreatePositionMap() { // create an entry without data RowMap& rCol = aColMap[0]; nColCount = 1; - assert ( rCol.empty() ); rCol[ 0 ] = nullptr; nRowCount = 1; nColAdd = 0; |