diff options
author | Alex Ivan <alexnivan@yahoo.com> | 2013-08-07 12:23:05 +0300 |
---|---|---|
committer | Alex Ivan <alexnivan@yahoo.com> | 2013-08-07 12:23:05 +0300 |
commit | bbe418154e75377e9f5a2c41eaf63906913e7346 (patch) | |
tree | 396e8ffd198572d71838c78752e7de215aad6d4a | |
parent | b17dad3335476d9631d0f504876810efd7d929e7 (diff) |
Partially fix properties update
Invalidating and setting complete paint for the SwTabFrms of the
table causes immediate update of the properties, with the
exception of the borders.
Font properties yet to be fixed.
Change-Id: Ie28a2f802ed9a2ad7f7d04ed283ea308b82e5b02
-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 ) |