Kaydet (Commit) 727c5b5f authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Calling empty std::function behaves different than calling empty Link

...regression introduced with a50cd187 "make
Control::ImplCallEventListenersAndHandler take a lambda"

Change-Id: I62e66d71cd36e55d68cf15c70dc9e06214f7e312
üst 4e6194fe
...@@ -328,7 +328,10 @@ bool Control::ImplCallEventListenersAndHandler( sal_uLong nEvent, std::function< ...@@ -328,7 +328,10 @@ bool Control::ImplCallEventListenersAndHandler( sal_uLong nEvent, std::function<
if ( !xThis->IsDisposed() ) if ( !xThis->IsDisposed() )
{ {
callHandler(); if (callHandler)
{
callHandler();
}
if ( !xThis->IsDisposed() ) if ( !xThis->IsDisposed() )
return false; return false;
......
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