Kaydet (Commit) f04ec99f authored tarafından Noel Grandin's avatar Noel Grandin

tdf#104573 - Assertion failed: SolarMutex not locked

Change-Id: Ie46f0e2b60b99aea1c322c7891a41a2e7603c9e9
üst ede1a83e
......@@ -317,6 +317,7 @@ public:
NotifyEvent( MouseNotifyEvent nEventType,
vcl::Window* pWindow,
const void* pEvent = nullptr );
~NotifyEvent();
MouseNotifyEvent GetType() const { return mnEventType; }
vcl::Window* GetWindow() const { return mpWindow; }
......
......@@ -658,4 +658,10 @@ NotifyEvent::NotifyEvent( MouseNotifyEvent nEventType, vcl::Window* pWindow,
mnEventType = nEventType;
}
NotifyEvent::~NotifyEvent()
{
SolarMutexGuard aVclGuard;
mpWindow.clear();
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
......@@ -161,7 +161,10 @@ void Window::ImplCallMouseMove( sal_uInt16 nMouseCode, bool bModChanged )
void Window::ImplGenerateMouseMove()
{
if ( !mpWindowImpl->mpFrameData->mnMouseMoveId )
{
SolarMutexGuard aVclGuard;
mpWindowImpl->mpFrameData->mnMouseMoveId = Application::PostUserEvent( LINK( mpWindowImpl->mpFrameWindow, Window, ImplGenerateMouseMoveHdl ), nullptr, true );
}
}
IMPL_LINK_NOARG(Window, ImplGenerateMouseMoveHdl, void*, void)
......
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