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-21 09:59:39 +0200 |
commit | 649be5feb4e162f83e9ff5fc8a68b463e723bc07 (patch) | |
tree | 30ed9e92936bfa51ec376e438fabccc55facff0c /sd | |
parent | 1d48e998ae038263b092e0de71da97fceee299f4 (diff) |
move SvColorDialog to welded arguments
Change-Id: Ieb04fc4684caa6df47b123ab06e280f2d204375a
Reviewed-on: https://gerrit.libreoffice.org/56174
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/filter/html/pubdlg.cxx | 12 | ||||
-rw-r--r-- | sd/source/ui/slideshow/slideshowimpl.cxx | 4 |
2 files changed, 8 insertions, 8 deletions
diff --git a/sd/source/filter/html/pubdlg.cxx b/sd/source/filter/html/pubdlg.cxx index cf6d21f88559..538eb71e57bd 100644 --- a/sd/source/filter/html/pubdlg.cxx +++ b/sd/source/filter/html/pubdlg.cxx @@ -1060,36 +1060,36 @@ IMPL_LINK_NOARG(SdPublishingDlg, ButtonsHdl, ValueSet*, void) // Fill the SfxItemSet with the settings of the dialog IMPL_LINK( SdPublishingDlg, ColorHdl, Button *, pButton, void) { - SvColorDialog aDlg(this); + SvColorDialog aDlg; if(pButton == pPage6_Back) { aDlg.SetColor( m_aBackColor ); - if(aDlg.Execute() == RET_OK ) + if(aDlg.Execute(GetFrameWeld()) == RET_OK ) m_aBackColor = aDlg.GetColor(); } else if(pButton == pPage6_Text) { aDlg.SetColor( m_aTextColor ); - if(aDlg.Execute() == RET_OK ) + if(aDlg.Execute(GetFrameWeld()) == RET_OK ) m_aTextColor = aDlg.GetColor(); } else if(pButton == pPage6_Link) { aDlg.SetColor( m_aLinkColor ); - if(aDlg.Execute() == RET_OK ) + if(aDlg.Execute(GetFrameWeld()) == RET_OK ) m_aLinkColor = aDlg.GetColor(); } else if(pButton == pPage6_VLink) { aDlg.SetColor( m_aVLinkColor ); - if(aDlg.Execute() == RET_OK ) + if(aDlg.Execute(GetFrameWeld()) == RET_OK ) m_aVLinkColor = aDlg.GetColor(); } else if(pButton == pPage6_ALink) { aDlg.SetColor( m_aALinkColor ); - if(aDlg.Execute() == RET_OK ) + if(aDlg.Execute(GetFrameWeld()) == RET_OK ) m_aALinkColor = aDlg.GetColor(); } diff --git a/sd/source/ui/slideshow/slideshowimpl.cxx b/sd/source/ui/slideshow/slideshowimpl.cxx index b3c78d89978e..0ab2165262e3 100644 --- a/sd/source/ui/slideshow/slideshowimpl.cxx +++ b/sd/source/ui/slideshow/slideshowimpl.cxx @@ -2100,10 +2100,10 @@ IMPL_LINK( SlideshowImpl, ContextMenuSelectHdl, Menu *, pMenu, bool ) { //Open a color picker based on SvColorDialog ::Color aColor( mnUserPaintColor ); - SvColorDialog aColorDlg( mpShowWindow); + SvColorDialog aColorDlg; aColorDlg.SetColor( aColor ); - if (aColorDlg.Execute() ) + if (aColorDlg.Execute(mpShowWindow->GetFrameWeld())) { aColor = aColorDlg.GetColor(); setPenColor(sal_Int32(aColor)); |