diff options
author | Alex Ivan <alexnivan@yahoo.com> | 2013-07-21 19:19:43 +0300 |
---|---|---|
committer | Alex Ivan <alexnivan@yahoo.com> | 2013-07-21 19:19:43 +0300 |
commit | 74fe564c6772707be3b978d12473ff69ae66843e (patch) | |
tree | 58852373adeb07a15686f80a6e465e31641d1ca0 | |
parent | 248c76291562f2fe95c2f246be06cbd7338fcb3e (diff) |
Separated hardformatting/styles in table insertion
Had previously overlooked where the table style information was
stored when inserting a new table into the document.
Change-Id: I8b285951c76fabe9b3b24006bba8592a3a6e5364
-rw-r--r-- | sw/source/core/docnode/ndtbl.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/docnode/ndtbl.cxx b/sw/source/core/docnode/ndtbl.cxx index 6e38a77297fa..eaa15acd8b8d 100644 --- a/sw/source/core/docnode/ndtbl.cxx +++ b/sw/source/core/docnode/ndtbl.cxx @@ -404,7 +404,7 @@ const SwTable* SwDoc::InsertTable( const SwInsertTableOptions& rInsTblOpts, ::lcl_SetDfltBorders( pTableFmt ); SwTable * pNdTbl = &pTblNd->GetTable(); - pNdTbl->RegisterToFormat( *pTableFmt ); + pNdTbl->GetTableFmt()->RegisterToFormat( *pTableFmt ); pNdTbl->SetRowsToRepeat( nRowsToRepeat ); pNdTbl->SetTableModel( bNewModel ); @@ -658,7 +658,7 @@ const SwTable* SwDoc::TextToTable( const SwInsertTableOptions& rInsTblOpts, // Set Orientation in the Table's Fmt pTableFmt->SetFmtAttr( SwFmtHoriOrient( 0, eAdjust ) ); - pNdTbl->RegisterToFormat( *pTableFmt ); + pNdTbl->GetTableFmt()->RegisterToFormat( *pTableFmt ); if( rInsTblOpts.mnInsMode & tabopts::DEFAULT_BORDER ) { |