Kaydet (Commit) a7395942 authored tarafından Chris Sherlock's avatar Chris Sherlock Kaydeden (comit) Caolán McNamara

fdo#74424 Use Window::GetOutDev() to access ImplReleaseGraphics()

Part of the decoupling of Window from OutputDevice. We now get
the Window's OutputDevice instance and manipulate this. Do not rely
on the inherited function.

Change-Id: Idde976aacd1bea2871cc72509a59c17af6f560f5
Reviewed-on: https://gerrit.libreoffice.org/7790Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst be16bfd4
......@@ -1130,7 +1130,8 @@ void Window::ImplRemoveWindow( sal_Bool bRemoveFrameData )
if ( bRemoveFrameData )
{
// release the graphic
ImplReleaseGraphics();
OutputDevice *pOutDev = GetOutDev();
pOutDev->ImplReleaseGraphics();
}
}
......@@ -3154,7 +3155,8 @@ void Window::ImplUpdateWindowPtr( Window* pWindow )
if ( mpWindowImpl->mpFrameWindow != pWindow->mpWindowImpl->mpFrameWindow )
{
// release graphic
ImplReleaseGraphics();
OutputDevice *pOutDev = GetOutDev();
pOutDev->ImplReleaseGraphics();
}
mpWindowImpl->mpFrameData = pWindow->mpWindowImpl->mpFrameData;
......@@ -4656,7 +4658,8 @@ Window::~Window()
}
// release SalGraphics
ImplReleaseGraphics();
OutputDevice *pOutDev = GetOutDev();
pOutDev->ImplReleaseGraphics();
// notify ImplDelData subscribers of this window about the window deletion
ImplDelData* pDelData = mpWindowImpl->mpFirstDel;
......
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