diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-03-06 09:45:08 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-03-06 11:26:36 +0000 |
commit | f9a4af41ca574760dbd22c8207661fabb6823e3b (patch) | |
tree | 4f9b8c562c8f9a466a0b27123e2c9d8738610a8b /sw | |
parent | 0e7f8150388f061ae731f26ed1d659d06f194432 (diff) |
silence SolarMutex not locked spew
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/txtnode/fntcache.cxx | 2 | ||||
-rw-r--r-- | sw/source/core/view/viewsh.cxx | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/sw/source/core/txtnode/fntcache.cxx b/sw/source/core/txtnode/fntcache.cxx index 2ec7fb9ed9f4..4ddeb3dddbe6 100644 --- a/sw/source/core/txtnode/fntcache.cxx +++ b/sw/source/core/txtnode/fntcache.cxx @@ -382,6 +382,8 @@ sal_uInt16 SwFntObj::GetFontLeading( const ViewShell *pSh, const OutputDevice& r { if ( USHRT_MAX == nGuessedLeading || USHRT_MAX == nExtLeading ) { + SolarMutexGuard aGuard; + const Font aOldFnt( rOut.GetFont() ); ((OutputDevice&)rOut).SetFont( *pPrtFont ); const FontMetric aMet( rOut.GetFontMetric() ); diff --git a/sw/source/core/view/viewsh.cxx b/sw/source/core/view/viewsh.cxx index 0413382d5fe5..774000c00f20 100644 --- a/sw/source/core/view/viewsh.cxx +++ b/sw/source/core/view/viewsh.cxx @@ -253,6 +253,8 @@ void ViewShell::ImplEndAction( const sal_Bool bIdleEnd ) { if ( !nLockPaint ) { + SolarMutexGuard aGuard; + sal_Bool bPaintsFromSystem = aInvalidRect.HasArea(); GetWin()->Update(); if ( aInvalidRect.HasArea() ) |