Kaydet (Commit) 6b6c23d4 authored tarafından Caolán McNamara's avatar Caolán McNamara

use Application::GetFrameWeld to tunnel weld::Window through XWindow

Change-Id: I137afe61acfb71337a45bedbe539b0096080e6cc
Reviewed-on: https://gerrit.libreoffice.org/56246
Tested-by: Jenkins
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst e7792c4b
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment