diff options
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/svdraw/svdcrtv.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/svx/source/svdraw/svdcrtv.cxx b/svx/source/svdraw/svdcrtv.cxx index 90ee92ffe465..7b070cbcc108 100644 --- a/svx/source/svdraw/svdcrtv.cxx +++ b/svx/source/svdraw/svdcrtv.cxx @@ -357,7 +357,8 @@ void SdrCreateView::SetCurrentObj(sal_uInt16 nIdent, sal_uInt32 nInvent) { nAktInvent=nInvent; nAktIdent=nIdent; - SdrObject* pObj = SdrObjFactory::MakeNewObject(nInvent,nIdent,nullptr); + SdrObject * pObj = (nIdent == OBJ_NONE) ? nullptr : + SdrObjFactory::MakeNewObject(nInvent, nIdent, nullptr); if(pObj) { |