summaryrefslogtreecommitdiffstats
path: root/lotuswordpro/source/filter/lwptablelayout.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-12-10 15:57:34 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-12-10 15:57:49 +0000
commit6857a386a4cfe4ddb42515cb00df5bd6648d0964 (patch)
treeb312f499a72b6a32af19209fc14a92bc46d0e2b5 /lotuswordpro/source/filter/lwptablelayout.cxx
parentsticky end only if it already was a range on the same axis, tdf#92779 (diff)
downloadcore-6857a386a4cfe4ddb42515cb00df5bd6648d0964.tar.gz
core-6857a386a4cfe4ddb42515cb00df5bd6648d0964.zip
there can be 0 columns
Change-Id: Ie367e88df7165d728015a1b3987b220a23203765
Diffstat (limited to 'lotuswordpro/source/filter/lwptablelayout.cxx')
-rw-r--r--lotuswordpro/source/filter/lwptablelayout.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/lotuswordpro/source/filter/lwptablelayout.cxx b/lotuswordpro/source/filter/lwptablelayout.cxx
index c3aabeede7a8..e73bbcdc991c 100644
--- a/lotuswordpro/source/filter/lwptablelayout.cxx
+++ b/lotuswordpro/source/filter/lwptablelayout.cxx
@@ -584,7 +584,7 @@ void LwpTableLayout::RegisterColumns()
m_pColumns[nColId] = pColumnLayout;
if (!pColumnLayout->IsJustifiable())
{
- pWidthCalculated[pColumnLayout->GetColumnID()] = sal_True;
+ pWidthCalculated[nColId] = sal_True;
dTableWidth -= pColumnLayout->GetWidth();
nJustifiableColumn --;
}
@@ -594,7 +594,7 @@ void LwpTableLayout::RegisterColumns()
}
// if all columns are not justifiable, the rightmost column will be changed to justifiable
- if(nJustifiableColumn == 0)
+ if (nJustifiableColumn == 0 && nCols != 0)
{
nJustifiableColumn ++;
if (m_pColumns[nCols - 1])