vcl/jsdialog/jsdialogbuilder.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit cb42d435978ea30905331c21caf96a3bc7db0676 Author: Gülşah Köse <gulsah.k...@collabora.com> AuthorDate: Mon Apr 7 14:15:34 2025 +0300 Commit: Gülşah Köse <gulsah.k...@collabora.com> CommitDate: Mon Apr 7 14:10:58 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 <gulsah.k...@collabora.com> Change-Id: I158c059c206e314add534af65bbd8142cf7b1a17 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/183786 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com> diff --git a/vcl/jsdialog/jsdialogbuilder.cxx b/vcl/jsdialog/jsdialogbuilder.cxx index d441a4cb4fbd..64820408184f 100644 --- a/vcl/jsdialog/jsdialogbuilder.cxx +++ b/vcl/jsdialog/jsdialogbuilder.cxx @@ -569,7 +569,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());