Kaydet (Commit) 9c1a1b98 authored tarafından Michael Stahl's avatar Michael Stahl

fdo#70861: cui: fix crash in SvxExtParagraphTabPage

SvxExtParagraphTabPage::Reset() must not request a pool default for
SID_ATTR_PARA_PAGENUM because it simply does not exist; the item is
backed by a member of SwPageDesc in Writer.

Change-Id: I9b157f048cd986566f9b01f3677b53d5974b6c8d
üst a69ef2d8
......@@ -1552,7 +1552,7 @@ void SvxExtParagraphTabPage::Reset( const SfxItemSet* rSet )
_nWhich = GetWhich( SID_ATTR_PARA_PAGENUM );
if ( rSet->GetItemState(_nWhich) >= SfxItemState::DEFAULT )
if (rSet->GetItemState(_nWhich) >= SfxItemState::SET)
{
const sal_uInt16 nPageNum =
static_cast<const SfxUInt16Item&>(rSet->Get( _nWhich ) ).GetValue();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment