diff --git a/sw/source/core/unocore/unotbl.cxx b/sw/source/core/unocore/unotbl.cxx index f7866b8272e3..2164c929315d 100644 --- a/sw/source/core/unocore/unotbl.cxx +++ b/sw/source/core/unocore/unotbl.cxx @@ -3777,7 +3777,7 @@ sal_Int32 SwXCellRange::Impl::GetRowCount() const const SwUnoCursor* SwXCellRange::GetTableCursor() const { SwFrameFormat *const pFormat = m_pImpl->GetFrameFormat(); - return pFormat ? &(*m_pImpl->m_pTableCursor) : nullptr; + return pFormat ? m_pImpl->m_pTableCursor.get() : nullptr; } void SwXCellRange::Impl::Notify( const SfxHint& rHint )