[Libreoffice-commits] core.git: sw/source

Caolán McNamara caolanm at redhat.com
Fri Jan 23 08:14:04 PST 2015


 sw/source/core/docnode/ndtbl.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit ad50b9a8636e0ee2f3c80669e8dde96577b26c4e
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Fri Jan 23 15:52:58 2015 +0000

    Related: fdo#78599 wrong method
    
    Change-Id: I1a51fc5037e145e8110f3336ddc803159a905266

diff --git a/sw/source/core/docnode/ndtbl.cxx b/sw/source/core/docnode/ndtbl.cxx
index dd83a47..c0cceb4 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() )
     {


More information about the Libreoffice-commits mailing list