diff options
author | AshSinc <ashleighsinclair86@gmail.com> | 2024-10-03 12:36:23 +0100 |
---|---|---|
committer | Heiko Tietze <heiko.tietze@documentfoundation.org> | 2024-11-18 11:39:01 +0100 |
commit | 76fa6776c66ece5de9e871905054ea6a1a832c50 (patch) | |
tree | 1cd006b26df6d79f2cc75d40b17b28694707ef52 /sd | |
parent | 15475ac404913a9f5d309ab9789c0bb3c902b62a (diff) |
tdf#163251 Fix for missing flags in single click obj creation
Change-Id: I0f6e65c4cf3ad9cac3096144d8a0efec29030739
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174420
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
Tested-by: Jenkins
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/func/fucon3d.cxx | 2 | ||||
-rw-r--r-- | sd/source/ui/func/fuconcs.cxx | 2 | ||||
-rw-r--r-- | sd/source/ui/func/fuconrec.cxx | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/sd/source/ui/func/fucon3d.cxx b/sd/source/ui/func/fucon3d.cxx index f770fe0c4d08..066c8e45305d 100644 --- a/sd/source/ui/func/fucon3d.cxx +++ b/sd/source/ui/func/fucon3d.cxx @@ -377,7 +377,7 @@ bool FuConstruct3dObject::MouseButtonUp(const MouseEvent& rMEvt) ::tools::Rectangle aNewObjectRectangle(aClickPos, Size(nDefaultObjectSize, nDefaultObjectSize)); rtl::Reference<SdrObject> pObjDefault = CreateDefaultObject(nSlotId, aNewObjectRectangle); - bReturn = mpView->InsertObjectAtView(pObjDefault.get(), *pPV); + bReturn = mpView->InsertObjectAtView(pObjDefault.get(), *pPV, SdrInsertFlags::SETDEFLAYER | SdrInsertFlags::SETDEFATTR); } } bReturn = FuConstruct::MouseButtonUp(rMEvt) || bReturn; diff --git a/sd/source/ui/func/fuconcs.cxx b/sd/source/ui/func/fuconcs.cxx index 58c977ff9747..4ec87e53cf86 100644 --- a/sd/source/ui/func/fuconcs.cxx +++ b/sd/source/ui/func/fuconcs.cxx @@ -143,7 +143,7 @@ bool FuConstructCustomShape::MouseButtonUp(const MouseEvent& rMEvt) ::tools::Rectangle aNewObjectRectangle(aClickPos, Size(nDefaultObjectSize, nDefaultObjectSize)); rtl::Reference<SdrObject> pObjDefault = CreateDefaultObject(nSlotId, aNewObjectRectangle); - bReturn = mpView->InsertObjectAtView(pObjDefault.get(), *pPV); + bReturn = mpView->InsertObjectAtView(pObjDefault.get(), *pPV, SdrInsertFlags::SETDEFLAYER | SdrInsertFlags::SETDEFATTR); } } bReturn = FuConstruct::MouseButtonUp (rMEvt) || bReturn; diff --git a/sd/source/ui/func/fuconrec.cxx b/sd/source/ui/func/fuconrec.cxx index 88a81a7e34fd..45abc8058d82 100644 --- a/sd/source/ui/func/fuconrec.cxx +++ b/sd/source/ui/func/fuconrec.cxx @@ -334,7 +334,7 @@ bool FuConstructRectangle::MouseButtonUp(const MouseEvent& rMEvt) ::tools::Rectangle aNewObjectRectangle(aClickPos, Size(nDefaultObjectSize, nDefaultObjectSize)); rtl::Reference<SdrObject> pObjDefault = CreateDefaultObject(nSlotId, aNewObjectRectangle); - bReturn = mpView->InsertObjectAtView(pObjDefault.get(), *pPV); + bReturn = mpView->InsertObjectAtView(pObjDefault.get(), *pPV, SdrInsertFlags::SETDEFLAYER | SdrInsertFlags::SETDEFATTR); } } |