summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2014-11-27 22:30:15 +0100
committerMichael Stahl <mstahl@redhat.com>2014-11-27 23:57:55 +0100
commita69ef2d84c3562da5e3bfda34e643c5044b4584a (patch)
treee817849f520c033aaa6dde0d3eeda85b9b4149fb /sw
parent5b940edaf66ab8371192ef67ef9171c0d40f7e18 (diff)
fdo#79303: Revert "fdo#70861 SwToSfxPageDescAttr: fix call to ...
... SvxExtParagraphTabPage" This reverts commit 5ce19ddcb6595c71980aecfa1e8c0827343159a4. It is now simply wrong to claim that a SID_ATTR_PARA_PAGENUM item with value 0 is set, when that is a valid offset value. SwTxtShell::Execute() will call SfxToSwPageDescAttr() which pulls the SID_ATTR_PARA_PAGENUM out of the item set and sets it. Change-Id: If5a155c2874486b3ef7d01883fe73f8e5fca46fe
Diffstat (limited to 'sw')
-rw-r--r--sw/source/uibase/utlui/uitool.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/sw/source/uibase/utlui/uitool.cxx b/sw/source/uibase/utlui/uitool.cxx
index 6eedf32f2c7c..2b8c718e5976 100644
--- a/sw/source/uibase/utlui/uitool.cxx
+++ b/sw/source/uibase/utlui/uitool.cxx
@@ -650,10 +650,9 @@ void SwToSfxPageDescAttr( SfxItemSet& rCoreSet )
bPut = false;
}
- // 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.
+ if (oNumOffset)
{
- SfxUInt16Item aPageNum( SID_ATTR_PARA_PAGENUM, oNumOffset ? oNumOffset.get() : 0 );
+ SfxUInt16Item aPageNum( SID_ATTR_PARA_PAGENUM, oNumOffset.get() );
rCoreSet.Put( aPageNum );
}