https://bugs.documentfoundation.org/show_bug.cgi?id=158450
Julien Nabet <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |haveBacktrace --- Comment #3 from Julien Nabet <[email protected]> --- When debugging this, I noticed that GetDialogController() returned nullptr in: 395 , m_xLineColorDLB(new ColorListBox(m_xBuilder->weld_menu_button("colorlb"), 396 [this]{ return GetDialogController()->getDialog(); })) See https://opengrok.libreoffice.org/xref/core/sw/source/ui/frmdlg/column.cxx?r=b542d904#395 I tried this patch locally: diff --git a/sw/source/ui/frmdlg/column.cxx b/sw/source/ui/frmdlg/column.cxx index 028b9f1b209a..380bbb768f16 100644 --- a/sw/source/ui/frmdlg/column.cxx +++ b/sw/source/ui/frmdlg/column.cxx @@ -393,7 +393,7 @@ SwColumnPage::SwColumnPage(weld::Container* pPage, weld::DialogController* pCont , m_xTextDirectionFT(m_xBuilder->weld_label("textdirectionft")) , m_xTextDirectionLB(new svx::FrameDirectionListBox(m_xBuilder->weld_combo_box("textdirectionlb"))) , m_xLineColorDLB(new ColorListBox(m_xBuilder->weld_menu_button("colorlb"), - [this]{ return GetDialogController()->getDialog(); })) + [pController]{ return pController->getDialog(); })) , m_xLineTypeDLB(new SvtLineListBox(m_xBuilder->weld_menu_button("linestylelb"))) , m_xEd1(new SwPercentField(m_xBuilder->weld_metric_spin_button("width1mf", FieldUnit::CM))) , m_xEd2(new SwPercentField(m_xBuilder->weld_metric_spin_button("width2mf", FieldUnit::CM))) it won't crash and open the custom colors window. -- You are receiving this mail because: You are the assignee for the bug.
