diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-06-21 10:48:34 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-06-22 17:02:41 +0200 |
commit | 6b6c23d4ef283c3df8f97c5cc2d97e49de57e076 (patch) | |
tree | 5a78a7a82c735ce4b7d8236966c63f983fb6736b /cui | |
parent | e7792c4bf270d5a98ec5b8d2be2e25c11a8ecf02 (diff) |
use Application::GetFrameWeld to tunnel weld::Window through XWindow
Change-Id: I137afe61acfb71337a45bedbe539b0096080e6cc
Reviewed-on: https://gerrit.libreoffice.org/56246
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.cxx | 3 |
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(); |