cui/uiconfig/ui/numberingoptionspage.ui |    5 +++++
 sw/source/ui/table/instable.cxx         |    6 ++++--
 2 files changed, 9 insertions(+), 2 deletions(-)

New commits:
commit 04f29ff27b5a1e98698540c6e67e85761381249a
Author:     Caolán McNamara <[email protected]>
AuthorDate: Thu Jan 8 08:42:01 2026 +0000
Commit:     Caolán McNamara <[email protected]>
CommitDate: Sat Jan 10 16:09:55 2026 +0100

    add a11y name to preview widget
    
    Change-Id: I56710e388e5bf927309c35b94dd4819de9ba70eb
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/196829
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <[email protected]>

diff --git a/cui/uiconfig/ui/numberingoptionspage.ui 
b/cui/uiconfig/ui/numberingoptionspage.ui
index 22f05bae051f..1b088870ad49 100644
--- a/cui/uiconfig/ui/numberingoptionspage.ui
+++ b/cui/uiconfig/ui/numberingoptionspage.ui
@@ -839,6 +839,11 @@
                     <property name="height-request">300</property>
                     <property name="visible">True</property>
                     <property name="can-focus">False</property>
+                    <child internal-child="accessible">
+                      <object class="AtkObject" id="preview-atkobject">
+                        <property name="AtkObject::accessible-name" 
translatable="yes" 
context="numberingoptionspage|preview-atkobject">Preview</property>
+                      </object>
+                    </child>
                   </object>
                 </child>
               </object>
commit 5355894446d15243f9d5b2ba694a39599590e855
Author:     Caolán McNamara <[email protected]>
AuthorDate: Fri Jan 9 16:32:38 2026 +0000
Commit:     Caolán McNamara <[email protected]>
CommitDate: Sat Jan 10 16:09:46 2026 +0100

    cid#1680310 silence Improper use of negative value
    
    and
    
    cid#1680309 Improper use of negative value
    
    Change-Id: I130ebaf70e5fdf34abf85540384c9d3e5ad76df5
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/196935
    Reviewed-by: Caolán McNamara <[email protected]>
    Tested-by: Jenkins

diff --git a/sw/source/ui/table/instable.cxx b/sw/source/ui/table/instable.cxx
index 36da6decf1f0..5e1e37d4cab7 100644
--- a/sw/source/ui/table/instable.cxx
+++ b/sw/source/ui/table/instable.cxx
@@ -152,13 +152,15 @@ void SwInsTableDlg::InitAutoTableFormat()
 IMPL_LINK_NOARG(SwInsTableDlg, SelFormatHdl, weld::TreeView&, void)
 {
     // Get index of selected item from the listbox
-    size_t styleIdx = m_xLbFormat->get_selected_index();
+    int styleIdx = m_xLbFormat->get_selected_index();
+    assert(styleIdx != -1 && "nothing selected");
     m_aWndPreview.NotifyChange((*m_xTableTable)[styleIdx]);
 }
 
 IMPL_LINK_NOARG(SwInsTableDlg, OKHdl, weld::Button&, void)
 {
-    size_t styleIdx = m_xLbFormat->get_selected_index();
+    int styleIdx = m_xLbFormat->get_selected_index();
+    assert(styleIdx != -1 && "nothing selected");
     m_pShell->SetTableStyle((*m_xTableTable)[styleIdx]);
 
     if( m_xTAutoFormat )

Reply via email to