diff options
-rw-r--r-- | sw/source/core/view/viewsh.cxx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sw/source/core/view/viewsh.cxx b/sw/source/core/view/viewsh.cxx index ef705c108305..1aa387977cc6 100644 --- a/sw/source/core/view/viewsh.cxx +++ b/sw/source/core/view/viewsh.cxx @@ -1865,11 +1865,12 @@ void touch_lo_draw_tile(void *context, int contextWidth, int contextHeight, MLOD sleep(1); } - // Creation, use and destruction of a VirtualDevice needs to be - // protected by the SolarMutex, it seems. - SolarMutexReleaser::AcquireSolarMutex(1); if (pViewShell) { + // Creation, use and destruction of a VirtualDevice needs to be + // protected by the SolarMutex, it seems: + SolarMutexGuard g; + SystemGraphicsData aData; aData.rCGContext = (CGContextRef) context; // the Size argument is irrelevant, I hope @@ -1877,7 +1878,7 @@ void touch_lo_draw_tile(void *context, int contextWidth, int contextHeight, MLOD // paint to it pViewShell->PaintTile(aDevice, contextWidth, contextHeight, tilePosX, tilePosY, tileWidth, tileHeight); } - SolarMutexReleaser::ReleaseSolarMutex(); + SAL_INFO("sw.tiled", "touch_lo_draw_tile(" << contextWidth << "x" << contextHeight << ", (" << tileDpxPosition.x << "," << tileDpxPosition.y << "), " << tileDpxSize.width << "x" << tileDpxSize.height << ") return"); #else (void) context; |