summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorHenry Castro <hcastro@collabora.com>2019-04-09 16:33:40 -0400
committerHenry Castro <hcastro@collabora.com>2019-04-15 20:49:38 +0200
commit304425807e9172ac7a85d5f17fceba2735218409 (patch)
tree07dce041d1521b6f6ef34d55bc75ab254a274982 /sw
parent6340daac7b99c65249363a4bb61c492de31ef5d6 (diff)
sw lok: fix "Cannot deselect the shape after inserting the first in a...
document" Change-Id: I976318fe299306b65190b4f5ae0ed2565830c6f7 Reviewed-on: https://gerrit.libreoffice.org/70475 Tested-by: Jenkins Reviewed-by: Jan Holesovsky <kendy@collabora.com> Reviewed-by: Henry Castro <hcastro@collabora.com>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/uibase/uiview/viewdraw.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/sw/source/uibase/uiview/viewdraw.cxx b/sw/source/uibase/uiview/viewdraw.cxx
index 00b722710caa..05ac5537e2cc 100644
--- a/sw/source/uibase/uiview/viewdraw.cxx
+++ b/sw/source/uibase/uiview/viewdraw.cxx
@@ -347,6 +347,10 @@ void SwView::ExecDraw(SfxRequest& rReq)
{
m_pWrtShell->GotoObj(true);
}
+ else if (dynamic_cast<ConstCustomShape*>(pTempFuncPtr))
+ {
+ pTempFuncPtr->CreateDefaultObject();
+ }
else
{
pTempFuncPtr->CreateDefaultObject();