jsdialogs: fix CID 1455691 & CID 1455690
Change-Id: Idbb3e70c1a09be7dd7c43747250f3a6368251cd9 Reviewed-on: https://gerrit.libreoffice.org/82662 Tested-by: Jenkins Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
This commit is contained in:
@@ -653,16 +653,19 @@ void SwDrawTextShell::Execute( SfxRequest &rReq )
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::unique_ptr<SfxItemSet> pNewArgs = pNewAttrs->Clone();
|
std::unique_ptr<SfxItemSet> pNewArgs = pNewAttrs ? pNewAttrs->Clone() : nullptr;
|
||||||
|
if (pNewArgs)
|
||||||
|
{
|
||||||
lcl_convertStringArguments(nSlot, pNewArgs);
|
lcl_convertStringArguments(nSlot, pNewArgs);
|
||||||
|
|
||||||
if(nEEWhich && pNewAttrs)
|
if (nEEWhich)
|
||||||
{
|
{
|
||||||
std::unique_ptr<SfxPoolItem> pNewItem(pNewArgs->Get(nWhich).CloneSetWhich(nEEWhich));
|
std::unique_ptr<SfxPoolItem> pNewItem(pNewArgs->Get(nWhich).CloneSetWhich(nEEWhich));
|
||||||
pNewArgs->Put(*pNewItem);
|
pNewArgs->Put(*pNewItem);
|
||||||
}
|
}
|
||||||
|
|
||||||
SetAttrToMarked(*pNewArgs);
|
SetAttrToMarked(*pNewArgs);
|
||||||
|
}
|
||||||
|
|
||||||
GetView().GetViewFrame()->GetBindings().InvalidateAll(false);
|
GetView().GetViewFrame()->GetBindings().InvalidateAll(false);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user