diff options
-rw-r--r-- | sw/source/core/text/inftxt.hxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sw/source/core/text/inftxt.hxx b/sw/source/core/text/inftxt.hxx index 94eb7de9f207..30888843626d 100644 --- a/sw/source/core/text/inftxt.hxx +++ b/sw/source/core/text/inftxt.hxx @@ -709,15 +709,13 @@ public: inline sal_uInt16 SwTextSizeInfo::GetAscent() const { - SAL_WARN_IF( !GetOut(), "sw.core", "SwTextSizeInfo::GetAscent() without m_pOut" ); - + assert(GetOut()); return const_cast<SwFont*>(GetFont())->GetAscent( m_pVsh, *GetOut() ); } inline sal_uInt16 SwTextSizeInfo::GetTextHeight() const { - SAL_WARN_IF( !GetOut(), "sw.core", "SwTextSizeInfo::GetTextHeight() without m_pOut" ); - + assert(GetOut()); return const_cast<SwFont*>(GetFont())->GetHeight( m_pVsh, *GetOut() ); } |