diff options
-rw-r--r-- | sw/source/core/doc/htmltbl.cxx | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/sw/source/core/doc/htmltbl.cxx b/sw/source/core/doc/htmltbl.cxx index da0135abd966..346c67c552fe 100644 --- a/sw/source/core/doc/htmltbl.cxx +++ b/sw/source/core/doc/htmltbl.cxx @@ -1032,14 +1032,11 @@ void SwHTMLTableLayout::AutoLayoutPass1() SwHTMLTableLayoutColumn *pColumn = GetColumn( i ); if (pColumn->IsRelWidthOption() && pColumn->GetWidthOption() && nQuotMax) { - if( pColumn->GetWidthOption() ) - { - pColumn->SetMax( pColumn->GetMax() / nQuotMax ); - OSL_ENSURE( pColumn->GetMax() >= pColumn->GetMin(), - "Minimum width is one column bigger than maximum" ); - if( pColumn->GetMax() < pColumn->GetMin() ) - pColumn->SetMax( pColumn->GetMin() ); - } + pColumn->SetMax( pColumn->GetMax() / nQuotMax ); + OSL_ENSURE( pColumn->GetMax() >= pColumn->GetMin(), + "Minimum width is one column bigger than maximum" ); + if( pColumn->GetMax() < pColumn->GetMin() ) + pColumn->SetMax( pColumn->GetMin() ); } m_nMax += pColumn->GetMax(); } |