diff options
Diffstat (limited to 'vcl/win/source')
-rw-r--r-- | vcl/win/source/window/salframe.cxx | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/vcl/win/source/window/salframe.cxx b/vcl/win/source/window/salframe.cxx index 9bddbfc8b207..f2a8fc64f2d3 100644 --- a/vcl/win/source/window/salframe.cxx +++ b/vcl/win/source/window/salframe.cxx @@ -2294,12 +2294,8 @@ static void ImplSalFrameEndExtTextInput( HWND hWnd, sal_uInt16 nFlags ) void WinSalFrame::EndExtTextInput( sal_uInt16 nFlags ) { - - SalData* pSalData = GetSalData(); - if ( pSalData->mnAppThreadId != GetCurrentThreadId() ) - ImplSalFrameEndExtTextInput( mhWnd, nFlags); - else - SendMessageW( mhWnd, SAL_MSG_ENDEXTTEXTINPUT, (WPARAM)nFlags, 0 ); + // Must be called in the main thread! + SendMessageW( mhWnd, SAL_MSG_ENDEXTTEXTINPUT, (WPARAM)nFlags, 0 ); } static void ImplGetKeyNameText( LONG lParam, sal_Unicode* pBuf, |