[Libreoffice-commits] core.git: cui/source sw/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Wed Jan 20 09:09:15 UTC 2021


 cui/source/tabpages/grfpage.cxx |    1 +
 sw/source/ui/envelp/label1.cxx  |    1 +
 2 files changed, 2 insertions(+)

New commits:
commit 61f5add790fad40b1e3f7a3a45b96d52f784f69c
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Mon Jan 18 20:12:45 2021 +0000
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Wed Jan 20 10:08:31 2021 +0100

    weld the dialog parent for best cleanup
    
    Change-Id: I4e43a7e891077ab257419d57093383c07311bd5c
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109650
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/cui/source/tabpages/grfpage.cxx b/cui/source/tabpages/grfpage.cxx
index 707c954703e2..ddc47de404c2 100644
--- a/cui/source/tabpages/grfpage.cxx
+++ b/cui/source/tabpages/grfpage.cxx
@@ -632,6 +632,7 @@ void SvxGrfCropPage::GraphicHasChanged( bool bFound )
         OUString sTemp;
         {
             std::unique_ptr<weld::Builder> xBuilder(Application::CreateBuilder(GetFrameWeld(), "cui/ui/spinbox.ui"));
+            std::unique_ptr<weld::Dialog> xTopLevel(xBuilder->weld_dialog("SpinDialog"));
             std::unique_ptr<weld::MetricSpinButton> xFld(xBuilder->weld_metric_spin_button("spin", FieldUnit::CM));
             SetFieldUnit( *xFld, eMetric );
             xFld->set_digits(m_xWidthMF->get_digits());
diff --git a/sw/source/ui/envelp/label1.cxx b/sw/source/ui/envelp/label1.cxx
index 6dd5c5b1d4b7..54cc0ff0a61f 100644
--- a/sw/source/ui/envelp/label1.cxx
+++ b/sw/source/ui/envelp/label1.cxx
@@ -390,6 +390,7 @@ IMPL_LINK_NOARG(SwLabPage, TypeHdl, weld::ComboBox&, void)
 void SwLabPage::DisplayFormat()
 {
     std::unique_ptr<weld::Builder> xBuilder(Application::CreateBuilder(GetFrameWeld(), "cui/ui/spinbox.ui"));
+    std::unique_ptr<weld::Dialog> xTopLevel(xBuilder->weld_dialog("SpinDialog"));
     std::unique_ptr<weld::MetricSpinButton> xField(xBuilder->weld_metric_spin_button("spin", FieldUnit::CM));
     SetFieldUnit(*xField, ::GetDfltMetric(false));
     xField->set_digits(2);


More information about the Libreoffice-commits mailing list