diff --git a/vcl/unx/gtk3/customcellrenderer.cxx b/vcl/unx/gtk3/customcellrenderer.cxx index ac786541f004..c7c6661ed912 100644 --- a/vcl/unx/gtk3/customcellrenderer.cxx +++ b/vcl/unx/gtk3/customcellrenderer.cxx @@ -215,6 +215,7 @@ bool custom_cell_renderer_get_preferred_size(GtkCellRenderer* cell, GtkOrientati gpointer pWidget = g_value_get_pointer(&value); if (pWidget) { + SolarMutexGuard aGuard; custom_cell_renderer_ensure_device(cellsurface, pWidget); aSize = custom_cell_renderer_get_size(*cellsurface->device, sId, pWidget); }