summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Ivan <alexnivan@yahoo.com>2013-07-18 14:15:58 +0300
committerAlex Ivan <alexnivan@yahoo.com>2013-07-18 14:15:58 +0300
commit13d870054e1b9f9b52519eef5eaf769d5cf4337e (patch)
tree32190d8490dbb34e0c9bd0086415185d45a76887
parenta52ce17f99cabca41d55404e63cd7717bc2bd8ab (diff)
Table style stored separately from hard format
Store/RestoreTableProperties methods used in Set/GetTableAutoFmt now save/apply properties to/from the table's GetRegisteredIn's GetRegisteredIn, thus separating the table style from the actual hard format of the current table. Change-Id: Iac3b73ad4388a9d73446c24d2fb50d96b7d1c380
-rw-r--r--sw/source/core/doc/swtblfmt.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/doc/swtblfmt.cxx b/sw/source/core/doc/swtblfmt.cxx
index 67bc68c0fc0a..e4a3a89a037f 100644
--- a/sw/source/core/doc/swtblfmt.cxx
+++ b/sw/source/core/doc/swtblfmt.cxx
@@ -243,7 +243,7 @@ sal_uInt16 SwTableFmt::GetRepeatHeading() const
void SwTableFmt::RestoreTableProperties(SwTable &table) const
{
- SwTableFmt *pFormat = table.GetTableFmt();
+ SwTableFmt *pFormat = (SwTableFmt*)table.GetTableFmt()->GetRegisteredIn();
if (!pFormat)
return;
@@ -261,7 +261,7 @@ void SwTableFmt::RestoreTableProperties(SwTable &table) const
void SwTableFmt::StoreTableProperties(const SwTable &table)
{
- SwTableFmt *pFormat = table.GetTableFmt();
+ SwTableFmt *pFormat = (SwTableFmt*)table.GetTableFmt()->GetRegisteredIn();
if (!pFormat)
return;