Kaydet (Commit) 588f0706 authored tarafından Michael Meeks's avatar Michael Meeks

tdf#92055 - make ImplBorderWindow more tolerant of post-dispose events.

Change-Id: I9556c920e6fc8b5595eee6bd00d36669e1684e25
Reviewed-on: https://gerrit.libreoffice.org/16892Reviewed-by: 's avatarMichael Meeks <michael.meeks@collabora.com>
Tested-by: 's avatarMichael Meeks <michael.meeks@collabora.com>
üst b54f2230
...@@ -1851,26 +1851,31 @@ void ImplBorderWindow::dispose() ...@@ -1851,26 +1851,31 @@ void ImplBorderWindow::dispose()
void ImplBorderWindow::MouseMove( const MouseEvent& rMEvt ) void ImplBorderWindow::MouseMove( const MouseEvent& rMEvt )
{ {
if (mpBorderView)
mpBorderView->MouseMove( rMEvt ); mpBorderView->MouseMove( rMEvt );
} }
void ImplBorderWindow::MouseButtonDown( const MouseEvent& rMEvt ) void ImplBorderWindow::MouseButtonDown( const MouseEvent& rMEvt )
{ {
if (mpBorderView)
mpBorderView->MouseButtonDown( rMEvt ); mpBorderView->MouseButtonDown( rMEvt );
} }
void ImplBorderWindow::Tracking( const TrackingEvent& rTEvt ) void ImplBorderWindow::Tracking( const TrackingEvent& rTEvt )
{ {
if (mpBorderView)
mpBorderView->Tracking( rTEvt ); mpBorderView->Tracking( rTEvt );
} }
void ImplBorderWindow::Paint( vcl::RenderContext& rRenderContext, const Rectangle& ) void ImplBorderWindow::Paint( vcl::RenderContext& rRenderContext, const Rectangle& )
{ {
if (mpBorderView)
mpBorderView->DrawWindow(rRenderContext, BORDERWINDOW_DRAW_ALL); mpBorderView->DrawWindow(rRenderContext, BORDERWINDOW_DRAW_ALL);
} }
void ImplBorderWindow::Draw( const Rectangle&, OutputDevice* pOutDev, const Point& rPos ) void ImplBorderWindow::Draw( const Rectangle&, OutputDevice* pOutDev, const Point& rPos )
{ {
if (mpBorderView)
mpBorderView->DrawWindow(*pOutDev, BORDERWINDOW_DRAW_ALL, &rPos); mpBorderView->DrawWindow(*pOutDev, BORDERWINDOW_DRAW_ALL, &rPos);
} }
......
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