summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2015-11-25 14:22:29 +0000
committerMichael Meeks <michael.meeks@collabora.com>2015-11-25 14:22:29 +0000
commitbe6108a861891b2e7060c6e16c47450d0b8b86e6 (patch)
treece85b265273758336c1031b499be78edefb1550f
parente63938cad10f15d50f27b3e3575069ace7358d07 (diff)
sw: SwXTextTableCursor needs to take the SolarMutex in release.
Change-Id: I1fb5baabd869c4abe8ccf9eeae131efcc697bbee
-rw-r--r--sw/source/core/unocore/unotbl.cxx24
1 files changed, 23 insertions, 1 deletions
diff --git a/sw/source/core/unocore/unotbl.cxx b/sw/source/core/unocore/unotbl.cxx
index 6f93d125fd97..044a514d84bf 100644
--- a/sw/source/core/unocore/unotbl.cxx
+++ b/sw/source/core/unocore/unotbl.cxx
@@ -795,6 +795,8 @@ void SAL_CALL SwXCell::acquire( ) throw()
void SAL_CALL SwXCell::release( ) throw()
{
+ SolarMutexGuard aGuard;
+
SwXCellBaseClass::release();
}
@@ -1430,7 +1432,27 @@ OUString SwXTextTableCursor::getImplementationName() throw( uno::RuntimeExceptio
sal_Bool SwXTextTableCursor::supportsService(const OUString& rServiceName) throw( uno::RuntimeException, std::exception )
{ return cppu::supportsService(this, rServiceName); }
-IMPLEMENT_FORWARD_XINTERFACE2(SwXTextTableCursor,SwXTextTableCursor_Base,OTextCursorHelper)
+void SwXTextTableCursor::acquire() throw()
+{
+ SwXTextTableCursor_Base::release();
+}
+
+void SwXTextTableCursor::release() throw()
+{
+ SolarMutexGuard aGuard;
+ SwXTextTableCursor_Base::release();
+}
+
+css::uno::Any SAL_CALL
+SwXTextTableCursor::queryInterface( const css::uno::Type& _rType )
+ throw (css::uno::RuntimeException, std::exception)
+{
+ css::uno::Any aReturn = SwXTextTableCursor_Base::queryInterface( _rType );
+ if ( !aReturn.hasValue() )
+ aReturn = OTextCursorHelper::queryInterface( _rType );
+ return aReturn;
+}
+
const SwPaM* SwXTextTableCursor::GetPaM() const { return &GetCursor(); }
SwPaM* SwXTextTableCursor::GetPaM() { return &GetCursor(); }
const SwDoc* SwXTextTableCursor::GetDoc() const { return GetFrameFormat()->GetDoc(); }