summaryrefslogtreecommitdiff
path: root/sw/source/core/doc/swtblfmt.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core/doc/swtblfmt.cxx')
-rw-r--r--sw/source/core/doc/swtblfmt.cxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/sw/source/core/doc/swtblfmt.cxx b/sw/source/core/doc/swtblfmt.cxx
index 15c63c7bfe1b..db24264196e3 100644
--- a/sw/source/core/doc/swtblfmt.cxx
+++ b/sw/source/core/doc/swtblfmt.cxx
@@ -238,7 +238,12 @@ sal_Bool SwTableFmt::GetRowSplit() const
sal_uInt16 SwTableFmt::GetRepeatHeading() const
{
- return (static_cast<const SfxUInt16Item&>( GetFmtAttr( FN_PARAM_TABLE_HEADLINE ) )).GetValue();
+ const SfxPoolItem* pItem;
+
+ if( SFX_ITEM_SET == GetItemState( FN_PARAM_TABLE_HEADLINE, sal_False, &pItem ) )
+ return ((const SfxUInt16Item*)pItem)->GetValue();
+
+ return 0;
}
void SwTableFmt::RestoreTableProperties( SwTableFmt* pSrcFmt, SwTable &table )