summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorHenry Castro <hcastro@collabora.com>2019-04-09 16:33:40 -0400
committerJan Holesovsky <kendy@collabora.com>2019-04-17 15:11:53 +0200
commit916c5834d09a4f9742cbdd00ab5d53b140a97153 (patch)
treeec7999ece3738483cc434bec2c40aeb5f908728e /sw
parentdea0c123952e6b07afc2458f61fce77de7a5e8cb (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> Reviewed-on: https://gerrit.libreoffice.org/70794 Tested-by: Jan Holesovsky <kendy@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 d0b4951886ec..09d49e3b52a5 100644
--- a/sw/source/uibase/uiview/viewdraw.cxx
+++ b/sw/source/uibase/uiview/viewdraw.cxx
@@ -353,6 +353,10 @@ void SwView::ExecDraw(SfxRequest& rReq)
{
m_pWrtShell->GotoObj(true);
}
+ else if (dynamic_cast<ConstCustomShape*>(pTempFuncPtr))
+ {
+ pTempFuncPtr->CreateDefaultObject();
+ }
else
{
pFuncPtr->CreateDefaultObject();