summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2019-01-25 14:40:40 +0100
committerMiklos Vajna <vmiklos@collabora.com>2019-01-25 16:56:54 +0100
commiteed72a8cf515ab54de829001ec1b71a0aaaa352b (patch)
tree8a1b56432d050697df78b5b99a44db9445904f41 /include
parent4627da3af6ff6664c4124362743b50caa0aa3a3a (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/66915 Reviewed-by: Miklos Vajna <vmiklos@collabora.com> Tested-by: Miklos Vajna <vmiklos@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 419193dcadca..26ebce763128 100644
--- a/include/svx/svdcrtv.hxx
+++ b/include/svx/svdcrtv.hxx
@@ -114,6 +114,9 @@ public:
bool IsCreateObj() const { return pAktCreate!=nullptr; }
SdrObject* GetCreateObj() const { return pAktCreate; }
+ /// 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