sd/source/ui/func/fusel.cxx |    9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

New commits:
commit cfb3eb9a76423eba54145a956f6d3b83d162d2b8
Author:     Miklos Vajna <vmik...@collabora.com>
AuthorDate: Fri Jun 26 16:35:34 2020 +0200
Commit:     Miklos Vajna <vmik...@collabora.com>
CommitDate: Mon Jun 29 10:43:01 2020 +0200

    sd signature line: allow move / resize of shape before signing
    
    Once the initial rectangle is drawn, a certificate is attached to this
    shape. Allow modifying this shape (and only this one) before the actual
    signing, in case the user wants to fine-tune the geometry.
    
    (cherry picked from commit 5d296183072dc7cfe7a9985c38388b56f37d873c)
    
    Change-Id: Icdf4ffa99eaf02f81d60884d45c26b3500ea73d9
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97368
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>
    Reviewed-by: Miklos Vajna <vmik...@collabora.com>

diff --git a/sd/source/ui/func/fusel.cxx b/sd/source/ui/func/fusel.cxx
index 18616775ac9e..baa6c6b9e3ad 100644
--- a/sd/source/ui/func/fusel.cxx
+++ b/sd/source/ui/func/fusel.cxx
@@ -201,8 +201,15 @@ bool FuSelection::MouseButtonDown(const MouseEvent& rMEvt)
         if (!bTextEdit && eHit == SdrHitKind::UrlField && !rMEvt.IsMod2() && 
!lcl_followHyperlinkAllowed(rMEvt))
             bTextEdit = true;
 
+        bool bPreventModify = mpDocSh->IsReadOnly();
+        if (bPreventModify && mpDocSh->GetSignPDFCertificate().is())
+        {
+            // If the just added signature line shape is selected, allow 
moving / resizing it.
+            bPreventModify = false;
+        }
+
         if(!bTextEdit
-            && !mpDocSh->IsReadOnly()
+            && !bPreventModify
             && ((mpView->IsMarkedHit(aMDPos, nHitLog) && !rMEvt.IsShift() && 
!rMEvt.IsMod2()) || pHdl != nullptr)
             && (rMEvt.GetClicks() != 2)
             )
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to