[Libreoffice-commits] core.git: Branch 'libreoffice-7-0' - sd/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Thu Dec 17 12:52:26 UTC 2020


 sd/source/ui/func/futransf.cxx |    3 +--
 sd/source/ui/view/drviews2.cxx |    4 +++-
 2 files changed, 4 insertions(+), 3 deletions(-)

New commits:
commit 594a27f191347fadf25ddf795b4f68263ef8abb2
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Wed Dec 16 12:42:05 2020 +0000
Commit:     Xisco Fauli <xiscofauli at libreoffice.org>
CommitDate: Thu Dec 17 13:51:49 2020 +0100

    tdf#138963 Clicking the position statusbar box disables selection
    
    if there is no object selected, since...
    
    commit d3dbbdce4eb71ae848e7682374e011c4a6129b15
    Date:   Wed Jan 17 15:20:31 2018 +0100
    
        lokdialog: Convert the Format -> ... -> Position and Size... to async exec.
    
        Change-Id: Idcdbfb1366db61e247c31eab5cb27a39978b0fd9
    
    Change-Id: I959789b055a880ac4c48a863c17eb6769b322577
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107800
    Tested-by: Jenkins
    Reviewed-by: Xisco Fauli <xiscofauli at libreoffice.org>

diff --git a/sd/source/ui/func/futransf.cxx b/sd/source/ui/func/futransf.cxx
index 4984c675ec4c..fa7398e48b43 100644
--- a/sd/source/ui/func/futransf.cxx
+++ b/sd/source/ui/func/futransf.cxx
@@ -106,8 +106,7 @@ void FuTransform::DoExecute( SfxRequest& rReq )
         bWelded = true;
     }
 
-    if (!pDlg)
-        return;
+    assert(pDlg && "there must be a dialog at this point");
 
     auto pRequest = std::make_shared<SfxRequest>(rReq);
     rReq.Ignore(); // the 'old' request is not relevant any more
diff --git a/sd/source/ui/view/drviews2.cxx b/sd/source/ui/view/drviews2.cxx
index 58cd5e5297b2..ae0f01121d63 100644
--- a/sd/source/ui/view/drviews2.cxx
+++ b/sd/source/ui/view/drviews2.cxx
@@ -1461,7 +1461,9 @@ void DrawViewShell::FuTemporary(SfxRequest& rReq)
         case SID_ATTR_TRANSFORM:
         {
             SetCurrentFunction( FuTransform::Create( this, GetActiveWindow(), mpDrawView.get(), GetDoc(), rReq ) );
-            if (rReq.GetArgs())
+            // tdf#138963 conditions tested for here must be the same as those
+            // of the early returns from FuTransform::DoExecute
+            if (rReq.GetArgs() || !mpDrawView->AreObjectsMarked())
             {
                 Invalidate(SID_RULER_OBJECT);
                 Cancel();


More information about the Libreoffice-commits mailing list