diff options
Diffstat (limited to 'sw/source/ui/envelp/label1.cxx')
-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); |