diff --git a/toolkit/source/controls/grid/defaultgriddatamodel.cxx b/toolkit/source/controls/grid/defaultgriddatamodel.cxx index 0eca84e6e5cd..8831f9106115 100644 --- a/toolkit/source/controls/grid/defaultgriddatamodel.cxx +++ b/toolkit/source/controls/grid/defaultgriddatamodel.cxx @@ -496,6 +496,7 @@ private: Reference< css::util::XCloneable > SAL_CALL DefaultGridDataModel::createClone( ) { + std::unique_lock aGuard(m_aMutex); return new DefaultGridDataModel( *this ); }