summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrzej Hunt <andrzej.hunt@collabora.com>2014-07-11 16:09:30 +0200
committerAndrzej Hunt <andrzej.hunt@collabora.com>2014-07-11 16:09:30 +0200
commit0ff0b9c0310d1541d1a7d02c2cc222da9191479b (patch)
tree90df5c7f457d13210dcdfd7d34d2954d8166521d
parentb360f9e0864f9b370f917d7bb846746cf122d40b (diff)
LOK: use solar mutex for setPart.
Needed e.g. for changing slides in impress. Change-Id: I2f5de40d4efbacde910e27225768979a98ff1c0a
-rw-r--r--desktop/source/lib/init.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx
index 7b6197a33be3..da551b4a26c1 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -461,7 +461,11 @@ static void doc_setPart(LibreOfficeKitDocument* pThis, int nPart)
return;
}
- pDoc->setPart( nPart );
+ Application::AcquireSolarMutex(1);
+ {
+ pDoc->setPart( nPart );
+ }
+ Application::ReleaseSolarMutex();
}
void doc_paintTile (LibreOfficeKitDocument* pThis,