diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-06-20 14:15:01 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-06-20 21:57:36 +0200 |
commit | b15244d526c285cd109f7195855409f698d0cdc0 (patch) | |
tree | f5b36b0d2ad0c2ba94024ef742147ed320f1ca17 /extensions | |
parent | 02e5afcea007365714b57e09b079ad0acca6e99d (diff) |
move SvColorDialog to welded arguments
Change-Id: Ieb04fc4684caa6df47b123ab06e280f2d204375a
Reviewed-on: https://gerrit.libreoffice.org/56162
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/source/propctrlr/formcomponenthandler.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/extensions/source/propctrlr/formcomponenthandler.cxx b/extensions/source/propctrlr/formcomponenthandler.cxx index 62257da1efbf..48965b871eac 100644 --- a/extensions/source/propctrlr/formcomponenthandler.cxx +++ b/extensions/source/propctrlr/formcomponenthandler.cxx @@ -2842,11 +2842,12 @@ namespace pcr { ::Color aColor; OSL_VERIFY( impl_getPropertyValue_throw( impl_getPropertyNameFromId_nothrow( _nColorPropertyId ) ) >>= aColor ); - SvColorDialog aColorDlg( impl_getDefaultDialogParent_nothrow() ); + SvColorDialog aColorDlg; aColorDlg.SetColor( aColor ); _rClearBeforeDialog.clear(); - if ( !aColorDlg.Execute() ) + vcl::Window* pParent = impl_getDefaultDialogParent_nothrow(); + if (!aColorDlg.Execute(pParent ? pParent->GetFrameWeld() : nullptr)) return false; _out_rNewValue <<= aColorDlg.GetColor(); |