summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2013-10-25 12:49:44 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2013-10-25 13:02:14 +0200
commit5ce19ddcb6595c71980aecfa1e8c0827343159a4 (patch)
treed607e10041e3857655ec61b6a3933b3cf4f6a47f /sw
parent317d255aa7f1497cdfb929b884066202f721672c (diff)
fdo#70861 SwToSfxPageDescAttr: fix call to SvxExtParagraphTabPage
Regression from c2ccd20c0fd92bddfff76447754541705e3eb8f3 (fdo#44689: fix for specific case of page restart-value 0, 2013-08-29), the problem was that commit refactored starting page number handling, so that '0' is now also a valid value, and no longer means "no restart". However cui isn't updated yet, so always pass a 0 to it, like we used to do so before, that's better than a crash. Change-Id: I2adab43499bcdd5234da3f26559b0b384e533c2e
Diffstat (limited to 'sw')
-rw-r--r--sw/source/ui/utlui/uitool.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/sw/source/ui/utlui/uitool.cxx b/sw/source/ui/utlui/uitool.cxx
index e0c4a36fb1c4..512d0bd6b663 100644
--- a/sw/source/ui/utlui/uitool.cxx
+++ b/sw/source/ui/utlui/uitool.cxx
@@ -642,9 +642,10 @@ void SwToSfxPageDescAttr( SfxItemSet& rCoreSet )
bPut = false;
}
- if (oNumOffset)
+ // TODO for now always pass a page number to cui, it can't make a
+ // difference between 0 and no page number at the moment.
{
- SfxUInt16Item aPageNum( SID_ATTR_PARA_PAGENUM, oNumOffset.get() );
+ SfxUInt16Item aPageNum( SID_ATTR_PARA_PAGENUM, oNumOffset ? oNumOffset.get() : 0 );
rCoreSet.Put( aPageNum );
}