sw/source/ui/table/convert.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 7448079186349ab5974b06d1e678a432250d75c8
Author:     Caolán McNamara <[email protected]>
AuthorDate: Sat Feb 21 19:35:13 2026 +0000
Commit:     Caolán McNamara <[email protected]>
CommitDate: Sun Feb 22 18:17:54 2026 +0100

    cid#1681468 Improper use of negative value
    
    my facepalm there
    
    Change-Id: I3abb101f458d2ac49e89352afe046b20664607a1
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/199962
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <[email protected]>

diff --git a/sw/source/ui/table/convert.cxx b/sw/source/ui/table/convert.cxx
index defb1597ca42..412493ce3916 100644
--- a/sw/source/ui/table/convert.cxx
+++ b/sw/source/ui/table/convert.cxx
@@ -242,7 +242,7 @@ std::unique_ptr<SwTableAutoFormat> 
SwConvertTableDlg::FillAutoFormatOfIndex() co
 
 IMPL_LINK(SwConvertTableDlg, CheckHdl, weld::Toggleable&, rBtn, void)
 {
-    if (m_nIndex != -1)
+    if (m_nIndex == -1)
         return;
 
     SwTableAutoFormat& rData = (*m_xTableTable)[m_nIndex];

Reply via email to