diff options
author | Alex Ivan <alexnivan@yahoo.com> | 2013-08-05 14:15:04 +0300 |
---|---|---|
committer | Alex Ivan <alexnivan@yahoo.com> | 2013-08-05 14:15:04 +0300 |
commit | b17dad3335476d9631d0f504876810efd7d929e7 (patch) | |
tree | c0b2f18aebfcd07c3aa479116a9e6147f10f56ee | |
parent | 873220ff9607f25e1b58073e881f7881a33e8f3c (diff) |
Fix column width in TextToTable
Change-Id: Ibe6321e5c79a7b1081087b0ae7d24a22ca676c4c
-rw-r--r-- | sw/source/core/docnode/ndtbl.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sw/source/core/docnode/ndtbl.cxx b/sw/source/core/docnode/ndtbl.cxx index 1cf358556254..614800d9c7cb 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& rInsTblOpts, for( sal_uInt16 i = 0; i < nCols; ++i ) { SwTableBox* pBox = rBoxes[ i ]; - bool bChgSz = false; sal_uInt8 nId = (i < nCols - 1 ? 0 : 1) + (n ? 2 : 0 ); if( bUseBoxFmt ) ::lcl_SetDfltBoxAttr( *pBox, *aBoxFmtArr1, nId ); else { - bChgSz = 0 == (*aBoxFmtArr2)[ nId ]; pBoxF = new SwTableBoxFmt ( *::lcl_CreateDfltBoxFmt( *this, *aBoxFmtArr2, USHRT_MAX, nId ) ); - if( bChgSz ) - pBoxF->SetFmtAttr( pBox->GetFrmFmt()->GetFrmSize() ); + pBoxF->SetFmtAttr( pBox->GetFrmFmt()->GetFrmSize() ); pBox->ChgFrmFmt( pBoxF ); } } |