sw/source/uibase/uiview/viewdraw.cxx |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 304425807e9172ac7a85d5f17fceba2735218409
Author:     Henry Castro <[email protected]>
AuthorDate: Tue Apr 9 16:33:40 2019 -0400
Commit:     Henry Castro <[email protected]>
CommitDate: Mon Apr 15 20:49:38 2019 +0200

    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 <[email protected]>
    Reviewed-by: Henry Castro <[email protected]>

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();
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to