summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2019-01-25 14:40:40 +0100
committerJan Holesovsky <kendy@collabora.com>2019-01-30 07:29:52 +0100
commitb6b28931435e44aca92b8c0e1659f701e3ed1a87 (patch)
tree722eaccb5cbb0e596f9d75bd6176d47708f61a7f /include
parentc2c60eb9969716ef91a83952203948b5e334ec85 (diff)
sw: Ctrl + shape insertion was not setting up the layer.
The consequence was that the shapes were inserted into the background layer. The problem was particularly visible with the LOK, but reproducible on the desktop too. Includes unit test. Change-Id: I16137331f944101e25679ec8c4a034bea658bc57 Reviewed-on: https://gerrit.libreoffice.org/66917 Tested-by: Jenkins Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Diffstat (limited to 'include')
-rw-r--r--include/svx/svdcrtv.hxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/svx/svdcrtv.hxx b/include/svx/svdcrtv.hxx
index 9b6a08e8f93b..2b1941373fb0 100644
--- a/include/svx/svdcrtv.hxx
+++ b/include/svx/svdcrtv.hxx
@@ -118,6 +118,9 @@ public:
bool IsCreateObj() const { return pCurrentCreate!=nullptr; }
SdrObject* GetCreateObj() const { return pCurrentCreate; }
+ /// Setup layer (eg. foreground / background) of the given object.
+ static void SetupObjLayer(const SdrPageView* pPageView, const OUString& aActiveLayer, SdrObject* pObj);
+
// BegCreateCaptionObj() creates a SdrCaptionObj (legend item).
// rObjSiz is the initial size of the legend text frame.
// Only the length of the tip is dragged