summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-01-23 15:52:58 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-01-23 16:13:24 +0000
commitad50b9a8636e0ee2f3c80669e8dde96577b26c4e (patch)
tree463a185f2164e88c55e62571e2f27de7d0133837
parentfcecc1fcb4a971a08d1e1fa5767bc5d93393a504 (diff)
Related: fdo#78599 wrong method
Change-Id: I1a51fc5037e145e8110f3336ddc803159a905266
-rw-r--r--sw/source/core/docnode/ndtbl.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/docnode/ndtbl.cxx b/sw/source/core/docnode/ndtbl.cxx
index dd83a472ee6a..c0cceb443cbb 100644
--- a/sw/source/core/docnode/ndtbl.cxx
+++ b/sw/source/core/docnode/ndtbl.cxx
@@ -459,6 +459,7 @@ const SwTable* SwDoc::InsertTable( const SwInsertTableOptions& rInsTblOpts,
}
SwTable& rNdTbl = pTblNd->GetTable();
+ rNdTbl.RegisterToFormat( *pTableFmt );
rNdTbl.SetRowsToRepeat( nRowsToRepeat );
rNdTbl.SetTableModel( bNewModel );
@@ -1212,7 +1213,6 @@ const SwTable* SwDoc::TextToTable( const std::vector< std::vector<SwNodeRange> >
getIDocumentStylePoolAccess().GetTxtCollFromPool( RES_POOLCOLL_STANDARD )/*, pUndo*/ );
SwTable& rNdTbl = pTblNd->GetTable();
- rNdTbl.RegisterToFormat(*pTableFmt);
if( !pBoxFmt->GetDepends() )
{