summaryrefslogtreecommitdiff
path: root/writerfilter/source/dmapper/DomainMapperTableManager.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-03-15 16:44:56 +0000
committerCaolán McNamara <caolanm@redhat.com>2020-03-15 21:05:31 +0100
commit5a5142999c4e557b80b09f80d967083a02094b5f (patch)
treea19a9337e750e069584e1e6c12df19751e5eaded /writerfilter/source/dmapper/DomainMapperTableManager.cxx
parentdfeaeb202648414b87769ee671e7b271227a1eb2 (diff)
!pCellWidths->empty() check means pCellWidths->size() > 0 is always true
Change-Id: I45ea2c5095c2082c5b1a885047f3cbbcd3d6e1c2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90534 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'writerfilter/source/dmapper/DomainMapperTableManager.cxx')
-rw-r--r--writerfilter/source/dmapper/DomainMapperTableManager.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/writerfilter/source/dmapper/DomainMapperTableManager.cxx b/writerfilter/source/dmapper/DomainMapperTableManager.cxx
index ea322b6a58f3..ae2d012072c3 100644
--- a/writerfilter/source/dmapper/DomainMapperTableManager.cxx
+++ b/writerfilter/source/dmapper/DomainMapperTableManager.cxx
@@ -719,7 +719,7 @@ void DomainMapperTableManager::endOfRowAction()
else if ( !pCellWidths->empty() &&
( m_nLayoutType == NS_ooxml::LN_Value_doc_ST_TblLayout_fixed
|| pCellWidths->size() == ( nGrids + m_nGridAfter )
- || ((bIsIncompleteGrid = true) && nGrids + m_nGridAfter > pTableGrid->size() && pCellWidths->size() > 0) )
+ || ((bIsIncompleteGrid = true) && nGrids + m_nGridAfter > pTableGrid->size()) )
)
{
// If we're here, then the number of cells does not equal to the amount