summaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-06-20 14:15:01 +0100
committerCaolán McNamara <caolanm@redhat.com>2018-06-20 21:57:36 +0200
commitb15244d526c285cd109f7195855409f698d0cdc0 (patch)
treef5b36b0d2ad0c2ba94024ef742147ed320f1ca17 /extensions
parent02e5afcea007365714b57e09b079ad0acca6e99d (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.cxx5
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();