diff options
author | Caolán McNamara <caolanm@redhat.com> | 2023-01-23 09:46:28 +0000 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2023-01-28 10:07:34 +0100 |
commit | 3447dcd7bc0c1b20e148110ff4f93e93d08fe4ae (patch) | |
tree | c6e2d5dde9c7a629f815cacb285cd524544f78f9 /sw/source/ui | |
parent | d02933576417b5c338d777cf9b9ff76a07c2ab86 (diff) |
gtk_tree_view_scroll_to_cell: assertion 'tree_view->priv->tree != NULL' failed
Change-Id: Ie02dbee2e21fd5092f8be5f01383f2ce3b60c0aa
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146020
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Diffstat (limited to 'sw/source/ui')
-rw-r--r-- | sw/source/ui/config/optpage.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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()) |