diff options
Diffstat (limited to 'sc/source/ui/optdlg/tpcompatibility.cxx')
-rw-r--r-- | sc/source/ui/optdlg/tpcompatibility.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sc/source/ui/optdlg/tpcompatibility.cxx b/sc/source/ui/optdlg/tpcompatibility.cxx index d7f6269e101e..cc54635f3300 100644 --- a/sc/source/ui/optdlg/tpcompatibility.cxx +++ b/sc/source/ui/optdlg/tpcompatibility.cxx @@ -38,7 +38,10 @@ OUString ScTpCompatOptions::GetAllStrings() OUString labels[] = { "label1", "label2" }; for (const auto& label : labels) - sAllStrings += m_xBuilder->weld_label(label)->get_label() + " "; + { + if (const auto& pString = m_xBuilder->weld_label(label)) + sAllStrings += pString->get_label() + " "; + } // id "keybindings" GtkComboBoxText is not included |