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

New commits:
commit fe2031e0f278e0a51d851e257f10a3fd3e58313f
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Mon Jan 23 09:46:28 2023 +0000
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Mon Jan 23 12:31:19 2023 +0000

    gtk_tree_view_scroll_to_cell: assertion 'tree_view->priv->tree != NULL' 
failed
    
    Change-Id: Ie02dbee2e21fd5092f8be5f01383f2ce3b60c0aa
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146000
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caol...@redhat.com>

diff --git a/sw/source/ui/config/optpage.cxx b/sw/source/ui/config/optpage.cxx
index 6fb406ba2953..48e50acaab1d 100644
--- a/sw/source/ui/config/optpage.cxx
+++ b/sw/source/ui/config/optpage.cxx
@@ -420,7 +420,7 @@ void    SwAddPrinterTabPage::Reset( const SfxItemSet*  )
         auto nFound = m_xFaxLB->find_text(pAddPrinterAttr->m_sFaxName);
         if (nFound != -1)
             m_xFaxLB->set_active(nFound);
-        else
+        else if (m_xFaxLB->get_count())
             m_xFaxLB->set_active(0);
     }
     if (m_xProspectCB->get_active())

Reply via email to