diff options
-rw-r--r-- | sw/inc/swtblfmt.hxx | 2 | ||||
-rw-r--r-- | sw/source/core/doc/swtblfmt.cxx | 8 |
2 files changed, 10 insertions, 0 deletions
diff --git a/sw/inc/swtblfmt.hxx b/sw/inc/swtblfmt.hxx index 51c279acbaf3..b4e709d884d1 100644 --- a/sw/inc/swtblfmt.hxx +++ b/sw/inc/swtblfmt.hxx @@ -51,6 +51,8 @@ #include <frmfmt.hxx> #include <paratr.hxx> #include <swtable.hxx> +#include <switerator.hxx> +#include <tabfrm.hxx> struct SwAfVersions; diff --git a/sw/source/core/doc/swtblfmt.cxx b/sw/source/core/doc/swtblfmt.cxx index 8a798f0fc365..276c37a0f6a3 100644 --- a/sw/source/core/doc/swtblfmt.cxx +++ b/sw/source/core/doc/swtblfmt.cxx @@ -282,6 +282,14 @@ void SwTableFmt::AssignFormatParents( SwTableFmt* pSrcFmt, SwTable &rTable ) pHardFmt->GetAttrSet().SetParent( NULL ); AssignLineParents( pSrcFmt, rTable ); + + SwIterator<SwTabFrm,SwFmt> aIter( *rTable.GetFrmFmt() ); + for( SwTabFrm* pLast = aIter.First(); pLast; pLast = aIter.Next() ) + if( pLast->GetTable() == &rTable ) + { + pLast->InvalidateAll(); + pLast->SetCompletePaint(); + } } void SwTableFmt::AssignLineParents( SwTableFmt* pSrcFmt, SwTable &rTable ) |