diff options
Diffstat (limited to 'cui/source/options/optaccessibility.cxx')
-rw-r--r-- | cui/source/options/optaccessibility.cxx | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/cui/source/options/optaccessibility.cxx b/cui/source/options/optaccessibility.cxx index e0667d51304d..f81c893673ca 100644 --- a/cui/source/options/optaccessibility.cxx +++ b/cui/source/options/optaccessibility.cxx @@ -54,13 +54,19 @@ OUString SvxAccessibilityOptionsTabPage::GetAllStrings() OUString labels[] = { "label1", "label2", "label13" }; 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() + " "; + } OUString checkButton[] = { "acctool", "textselinreadonly", "animatedgraphics", "animatedtext", "autofontcolor", "systempagepreviewcolor" }; for (const auto& check : checkButton) - sAllStrings += m_xBuilder->weld_check_button(check)->get_label() + " "; + { + if (const auto& pString = m_xBuilder->weld_check_button(check)) + sAllStrings += pString->get_label() + " "; + } return sAllStrings.replaceAll("_", ""); } |