summaryrefslogtreecommitdiff
path: root/starmath/source
diff options
context:
space:
mode:
Diffstat (limited to 'starmath/source')
-rw-r--r--starmath/source/dialog.cxx15
1 files changed, 12 insertions, 3 deletions
diff --git a/starmath/source/dialog.cxx b/starmath/source/dialog.cxx
index f06cb60bc929..c87b987660e4 100644
--- a/starmath/source/dialog.cxx
+++ b/starmath/source/dialog.cxx
@@ -193,18 +193,27 @@ OUString SmPrintOptionsTabPage::GetAllStrings()
OUString labels[] = { "label4", "label5", "label1", "label6" };
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[]
= { "title", "text", "frame", "norightspaces", "saveonlyusedsymbols", "autoclosebrackets" };
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() + " ";
+ }
OUString radioButton[] = { "sizenormal", "sizescaled", "sizezoomed" };
for (const auto& radio : radioButton)
- sAllStrings += m_xBuilder->weld_radio_button(radio)->get_label() + " ";
+ {
+ if (const auto& pString = m_xBuilder->weld_radio_button(radio))
+ sAllStrings += pString->get_label() + " ";
+ }
return sAllStrings.replaceAll("_", "");
}