diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-09-24 12:10:21 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-09-24 17:11:09 +0200 |
commit | 435023376b7f07c974fa348782cff058f60ceba3 (patch) | |
tree | d176b564a179441250508b73aba0e71ced4e2a13 /sw | |
parent | 6f3c7c4506c1df1319bac2c1cc0899dda827f65f (diff) |
use GetDefDialogParent as an arbitrary parent for temp widget
Change-Id: I7226481c7d501c88ac937760ba464b1b11260f7e
Reviewed-on: https://gerrit.libreoffice.org/79452
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/ui/envelp/label1.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/ui/envelp/label1.cxx b/sw/source/ui/envelp/label1.cxx index 9908ab6a8477..e1e42ba1ef64 100644 --- a/sw/source/ui/envelp/label1.cxx +++ b/sw/source/ui/envelp/label1.cxx @@ -18,6 +18,7 @@ */ #include <memory> +#include <vcl/svapp.hxx> #include <vcl/waitobj.hxx> #include <rtl/ustring.hxx> #include <sfx2/sfxsids.hrc> @@ -393,7 +394,7 @@ IMPL_LINK_NOARG(SwLabPage, TypeHdl, weld::ComboBox&, void) void SwLabPage::DisplayFormat() { - ScopedVclPtrInstance< MetricField > aField(this, WinBits(0)); + ScopedVclPtrInstance< MetricField > aField(Application::GetDefDialogParent(), WinBits(0)); FieldUnit aMetric = ::GetDfltMetric(false); SetMetric(*aField, aMetric); aField->SetDecimalDigits(2); |