vcl/jsdialog/jsdialogbuilder.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 5ed96520e4c421972ec23cb3da8d2e960df16560 Author: Gülşah Köse <[email protected]> AuthorDate: Mon Apr 7 14:15:34 2025 +0300 Commit: Gülşah Köse <[email protected]> CommitDate: Tue Oct 21 22:05:41 2025 +0200 ONLINE: Fix uno:ChangeDistance dialog. Check if the label is exist before creating label instance. Signed-off-by: Gülşah Köse <[email protected]> Change-Id: I158c059c206e314add534af65bbd8142cf7b1a17 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/183786 Tested-by: Jenkins CollaboraOffice <[email protected]> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/184764 Tested-by: Jenkins diff --git a/vcl/jsdialog/jsdialogbuilder.cxx b/vcl/jsdialog/jsdialogbuilder.cxx index f09a7a6d0ac2..4c12ba5415d2 100644 --- a/vcl/jsdialog/jsdialogbuilder.cxx +++ b/vcl/jsdialog/jsdialogbuilder.cxx @@ -572,7 +572,7 @@ JSInstanceBuilder::weld_scrolled_window(const OUString& id, bool bUserManagedScr std::unique_ptr<weld::Label> JSInstanceBuilder::weld_label(const OUString& id) { Control* pLabel = m_xBuilder->get<Control>(id); - auto pWeldWidget = std::make_unique<JSLabel>(this, pLabel, this, false); + auto pWeldWidget = pLabel ? std::make_unique<JSLabel>(this, pLabel, this, false) : nullptr; if (pWeldWidget) RememberWidget(id, pWeldWidget.get());
