diff options
author | Alex Ivan <alexnivan@yahoo.com> | 2013-08-23 16:33:36 +0300 |
---|---|---|
committer | Alex Ivan <alexnivan@yahoo.com> | 2013-08-23 16:33:36 +0300 |
commit | 03877216d708eaeb0fad205aacaec892fe4a3800 (patch) | |
tree | 80121bb4ca4f1cf5db2082ae1888dac55b722d4d | |
parent | 17d00196dbcaa8a98f65f6b3c1c33e507ddbf210 (diff) |
Add some more security to format parent assigning
Change-Id: I3f250f88ae68d6604bb4da0e9ae78ccefabf96e9
-rw-r--r-- | sw/source/core/doc/swtblfmt.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sw/source/core/doc/swtblfmt.cxx b/sw/source/core/doc/swtblfmt.cxx index 823f073df439..ee5c3f0e5af7 100644 --- a/sw/source/core/doc/swtblfmt.cxx +++ b/sw/source/core/doc/swtblfmt.cxx @@ -276,6 +276,9 @@ void SwTableFmt::AssignFormatParents( SwTableFmt* pSrcFmt, SwTable &rTable ) if( !pHardFmt ) return; + if( pSrcFmt && pSrcFmt->IsDefault() ) + return; + if( pSrcFmt ) pHardFmt->GetAttrSet().SetParent( &pSrcFmt->GetAttrSet() ); else |