Kaydet (Commit) 28d760e5 authored tarafından Michael Stahl's avatar Michael Stahl

tdf#108305 sw: fix crash on fly "Position and Size"

Everything else in SwFrameShell::Execute() checks pArgs isn't null so do
the same here.

(regression from d02f75a8)

Change-Id: I73d85b111a5d2c088b9d888b8595ceb3979e8d2b
üst f9b665d9
...@@ -350,13 +350,15 @@ void SwFrameShell::Execute(SfxRequest &rReq) ...@@ -350,13 +350,15 @@ void SwFrameShell::Execute(SfxRequest &rReq)
bool bApplyNewSize = false; bool bApplyNewSize = false;
Size aNewSize = aMgr.GetSize(); Size aNewSize = aMgr.GetSize();
if ( SfxItemState::SET == pArgs->GetItemState( SID_ATTR_TRANSFORM_WIDTH, false, &pItem ) ) if (pArgs &&
SfxItemState::SET == pArgs->GetItemState(SID_ATTR_TRANSFORM_WIDTH, false, &pItem))
{ {
aNewSize.setWidth( static_cast< const SfxUInt32Item* >(pItem)->GetValue() ); aNewSize.setWidth( static_cast< const SfxUInt32Item* >(pItem)->GetValue() );
bApplyNewSize = true; bApplyNewSize = true;
} }
if ( SfxItemState::SET == pArgs->GetItemState( SID_ATTR_TRANSFORM_HEIGHT, false, &pItem ) ) if (pArgs &&
SfxItemState::SET == pArgs->GetItemState(SID_ATTR_TRANSFORM_HEIGHT, false, &pItem))
{ {
aNewSize.setHeight( static_cast< const SfxUInt32Item* >(pItem)->GetValue() ); aNewSize.setHeight( static_cast< const SfxUInt32Item* >(pItem)->GetValue() );
bApplyNewSize = true; bApplyNewSize = true;
......
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