summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-06-21 10:48:34 +0100
committerCaolán McNamara <caolanm@redhat.com>2018-06-22 22:13:48 +0200
commit55ce334d65baebcf523d1a825004d35385c637d0 (patch)
treeb02d9a1ba61959f4b56621852d76acae0a67fce7 /cui
parentdce6401f7e1f466c30996ad606699479713209e5 (diff)
use Application::GetFrameWeld to tunnel weld::Window through XWindow
Change-Id: I137afe61acfb71337a45bedbe539b0096080e6cc Reviewed-on: https://gerrit.libreoffice.org/56302 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/dialogs/colorpicker.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/cui/source/dialogs/colorpicker.cxx b/cui/source/dialogs/colorpicker.cxx
index 3b182cde641a..c928c0493e45 100644
--- a/cui/source/dialogs/colorpicker.cxx
+++ b/cui/source/dialogs/colorpicker.cxx
@@ -1301,8 +1301,7 @@ void SAL_CALL ColorPicker::setTitle( const OUString& sTitle )
sal_Int16 SAL_CALL ColorPicker::execute()
{
- VclPtr<vcl::Window> xWin(VCLUnoHelper::GetWindow(mxParent));
- std::unique_ptr<ColorPickerDialog> xDlg(new ColorPickerDialog(xWin ? xWin->GetFrameWeld() : nullptr, mnColor, mnMode));
+ std::unique_ptr<ColorPickerDialog> xDlg(new ColorPickerDialog(Application::GetFrameWeld(mxParent), mnColor, mnMode));
sal_Int16 ret = xDlg->run();
if (ret)
mnColor = xDlg->GetColor();