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 /cui | |
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 'cui')
-rw-r--r-- | cui/source/tabpages/grfpage.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cui/source/tabpages/grfpage.cxx b/cui/source/tabpages/grfpage.cxx index 1e19b0d0667f..7defa0a2b08e 100644 --- a/cui/source/tabpages/grfpage.cxx +++ b/cui/source/tabpages/grfpage.cxx @@ -33,6 +33,7 @@ #include <strings.hrc> #include <vcl/field.hxx> #include <vcl/settings.hxx> +#include <vcl/svapp.hxx> #include <svtools/unitconv.hxx> #define CM_1_TO_TWIP 567 @@ -631,7 +632,7 @@ void SvxGrfCropPage::GraphicHasChanged( bool bFound ) // display original size const FieldUnit eMetric = GetModuleFieldUnit( GetItemSet() ); - ScopedVclPtrInstance< MetricField > aFld(this, WB_HIDE); + ScopedVclPtrInstance< MetricField > aFld(Application::GetDefDialogParent(), WB_HIDE); SetFieldUnit( *aFld, eMetric ); aFld->SetDecimalDigits(m_xWidthMF->get_digits()); aFld->SetMax( LONG_MAX - 1 ); |