From d186ed09bcabe36f70e8a58b4f0b1c05c3c72218 Mon Sep 17 00:00:00 2001 From: Andras Timar Date: Tue, 6 Nov 2018 11:28:52 +0100 Subject: replace Application::GetMainThreadIdentifier to Application::IsMainThread Change-Id: I2b9ea77b48673af3575a3142feea5bed84f75d74 Reviewed-on: https://gerrit.libreoffice.org/62950 Reviewed-by: Michael Meeks Tested-by: Jenkins --- svx/source/fmcomp/gridctrl.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'svx') diff --git a/svx/source/fmcomp/gridctrl.cxx b/svx/source/fmcomp/gridctrl.cxx index 29664c00d673..325d2b2957ef 100644 --- a/svx/source/fmcomp/gridctrl.cxx +++ b/svx/source/fmcomp/gridctrl.cxx @@ -3423,7 +3423,7 @@ void DbGridControl::implAdjustInSolarThread(bool _bRows) { SAL_INFO("svx.fmcomp", "DbGridControl::implAdjustInSolarThread"); ::osl::MutexGuard aGuard(m_aAdjustSafety); - if (::osl::Thread::getCurrentIdentifier() != Application::GetMainThreadIdentifier()) + if (!Application::IsMainThread()) { m_nAsynAdjustEvent = PostUserEvent(LINK(this, DbGridControl, OnAsyncAdjust), reinterpret_cast< void* >( _bRows ), true); m_bPendingAdjustRows = _bRows; -- cgit