diff options
Diffstat (limited to 'sw/source/core/unocore/unotbl.cxx')
-rw-r--r-- | sw/source/core/unocore/unotbl.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/core/unocore/unotbl.cxx b/sw/source/core/unocore/unotbl.cxx index fa378c7e8ae1..fbce960453b6 100644 --- a/sw/source/core/unocore/unotbl.cxx +++ b/sw/source/core/unocore/unotbl.cxx @@ -2215,7 +2215,8 @@ SwXTextTable::attach(const uno::Reference<text::XTextRange> & xTextRange) uno::Reference<text::XTextRange> SwXTextTable::getAnchor() { SolarMutexGuard aGuard; - SwFrameFormat* pFormat = lcl_EnsureCoreConnected(GetFrameFormat(), static_cast<cppu::OWeakObject*>(this)); + SwTableFormat *const pFormat = static_cast<SwTableFormat*>( + lcl_EnsureCoreConnected(GetFrameFormat(), static_cast<cppu::OWeakObject*>(this))); return new SwXTextRange(*pFormat); } |