sc/source/ui/pagedlg/tphfedit.cxx |   35 +++++++++++++++++------------------
 1 file changed, 17 insertions(+), 18 deletions(-)

New commits:
commit 92180791382f64c2b79f485e72b7a1026d573c2f
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Tue Aug 30 10:25:12 2022 +0100
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Tue Aug 30 12:20:37 2022 +0200

    always call SetCursor even without a11y enabled
    
    returns too early
    
    Change-Id: I68715d965538853244aa1dbd52f4ae8adc27293b
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139023
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caol...@redhat.com>

diff --git a/sc/source/ui/pagedlg/tphfedit.cxx 
b/sc/source/ui/pagedlg/tphfedit.cxx
index bf256e8a0016..60a0f53d0ea2 100644
--- a/sc/source/ui/pagedlg/tphfedit.cxx
+++ b/sc/source/ui/pagedlg/tphfedit.cxx
@@ -87,27 +87,26 @@ void ScEditWindow::SetDrawingArea(weld::DrawingArea* 
pDrawingArea)
     if (mbRTL)
         
m_xEditEngine->SetDefaultHorizontalTextDirection(EEHorizontalTextDirection::R2L);
 
-    auto tmpAcc = mxAcc.get();
-    if (!tmpAcc)
-        return;
-
-    OUString sName;
-    switch (eLocation)
+    if (auto tmpAcc = mxAcc.get())
     {
-        case Left:
-            sName = ScResId(STR_ACC_LEFTAREA_NAME);
-            break;
-        case Center:
-            sName = ScResId(STR_ACC_CENTERAREA_NAME);
-            break;
-        case Right:
-            sName = ScResId(STR_ACC_RIGHTAREA_NAME);
-            break;
+        OUString sName;
+        switch (eLocation)
+        {
+            case Left:
+                sName = ScResId(STR_ACC_LEFTAREA_NAME);
+                break;
+            case Center:
+                sName = ScResId(STR_ACC_CENTERAREA_NAME);
+                break;
+            case Right:
+                sName = ScResId(STR_ACC_RIGHTAREA_NAME);
+                break;
+        }
+
+        tmpAcc->InitAcc(nullptr, m_xEditView.get(),
+                      sName, pDrawingArea->get_tooltip_text());
     }
 
-    tmpAcc->InitAcc(nullptr, m_xEditView.get(),
-                  sName, pDrawingArea->get_tooltip_text());
-
     SetCursor(m_xEditView->GetCursor());
 }
 

Reply via email to