summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Ivan <alexnivan@yahoo.com>2013-08-05 14:15:04 +0300
committerJan Holesovsky <kendy@collabora.com>2015-09-24 01:00:10 +0200
commit2602cf20219fc47252e952bf0122706a919639fe (patch)
tree65c69d1617a4890a40a67970a047fa76e9836f85
parent908ccf55bd771a955ddcd11e2604ebca6c6ef4e0 (diff)
Fix column width in TextToTable
Change-Id: Ibe6321e5c79a7b1081087b0ae7d24a22ca676c4c
-rw-r--r--sw/source/core/docnode/ndtbl.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/sw/source/core/docnode/ndtbl.cxx b/sw/source/core/docnode/ndtbl.cxx
index 312ba71bd0d8..3be5b3f52be6 100644
--- a/sw/source/core/docnode/ndtbl.cxx
+++ b/sw/source/core/docnode/ndtbl.cxx
@@ -729,17 +729,14 @@ const SwTable* SwDoc::TextToTable( const SwInsertTableOptions& rInsTableOpts,
for( SwTableBoxes::size_type i = 0; i < nCols; ++i )
{
SwTableBox* pBox = rBoxes[ i ];
- bool bChgSz = false;
sal_uInt8 nId = (i < nCols - 1 ? 0 : 1) + (n ? 2 : 0 );
if( bUseBoxFormat )
::lcl_SetDfltBoxAttr( *pBox, *aBoxFormatArr1, nId );
else
{
- bChgSz = 0 == (*aBoxFormatArr2)[ nId ];
pBoxF = new SwTableBoxFormat ( *::lcl_CreateDfltBoxFormat( *this, *aBoxFormatArr2, USHRT_MAX, nId ) );
- if( bChgSz )
- pBoxF->SetFormatAttr( pBox->GetFrameFormat()->GetFrmSize() );
+ pBoxF->SetFormatAttr( pBox->GetFrameFormat()->GetFrmSize() );
pBox->ChgFrameFormat( pBoxF );
}
}