From bbe418154e75377e9f5a2c41eaf63906913e7346 Mon Sep 17 00:00:00 2001 From: Alex Ivan Date: Wed, 7 Aug 2013 12:23:05 +0300 Subject: 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 --- sw/inc/swtblfmt.hxx | 2 ++ sw/source/core/doc/swtblfmt.cxx | 8 ++++++++ 2 files changed, 10 insertions(+) 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 #include #include +#include +#include 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 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 ) -- cgit v1.2.3