summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2023-01-23 09:46:28 +0000
committerCaolán McNamara <caolanm@redhat.com>2023-01-23 12:31:19 +0000
commitfe2031e0f278e0a51d851e257f10a3fd3e58313f (patch)
treec93d2441bab6e009c3379ad1fba5b68f6ca2f9db /sw/source
parent77fbe2f41af7a64a14fe62a280d816890d9bc8d9 (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/+/146000 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw/source')
-rw-r--r--sw/source/ui/config/optpage.cxx2
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())