diff options
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/tabpages/tpcolor.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cui/source/tabpages/tpcolor.cxx b/cui/source/tabpages/tpcolor.cxx index 113d1f9fb8a8..724a075b22d5 100644 --- a/cui/source/tabpages/tpcolor.cxx +++ b/cui/source/tabpages/tpcolor.cxx @@ -388,14 +388,14 @@ IMPL_LINK_NOARG(SvxColorTabPage, ClickAddHdl_Impl, weld::Button&, void) IMPL_LINK_NOARG(SvxColorTabPage, ClickWorkOnHdl_Impl, weld::Button&, void) { - std::unique_ptr<SvColorDialog> pColorDlg(new SvColorDialog( GetParentDialog() )); + SvColorDialog aColorDlg; - pColorDlg->SetColor (aCurrentColor); - pColorDlg->SetMode( svtools::ColorPickerMode::Modify ); + aColorDlg.SetColor (aCurrentColor); + aColorDlg.SetMode( svtools::ColorPickerMode::Modify ); - if( pColorDlg->Execute() == RET_OK ) + if (aColorDlg.Execute(GetFrameWeld()) == RET_OK) { - Color aPreviewColor = pColorDlg->GetColor(); + Color aPreviewColor = aColorDlg.GetColor(); aCurrentColor = aPreviewColor; UpdateColorValues( false ); // fill ItemSet and pass it on to XOut |