diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-10-11 16:43:18 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-10-11 17:33:51 +0100 |
commit | a5defe0dde638c7dd8e99cbef7e22bace572a7ff (patch) | |
tree | 4a5f48c5809f757d7c03f575d09b78b9d7d1a355 /sw/source/uibase/uiview | |
parent | d3a3fcbaa50c1de54a97d062c0eaa2a0c7e3648a (diff) |
coverity#704074 Unchecked return value
Change-Id: I636ede58f83d9faa851c21406d27b8246ec40ff9
Diffstat (limited to 'sw/source/uibase/uiview')
-rw-r--r-- | sw/source/uibase/uiview/viewport.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/uibase/uiview/viewport.cxx b/sw/source/uibase/uiview/viewport.cxx index 90903289afb5..1002cdceb769 100644 --- a/sw/source/uibase/uiview/viewport.cxx +++ b/sw/source/uibase/uiview/viewport.cxx @@ -708,8 +708,8 @@ IMPL_LINK( SwView, ScrollHdl, SwScrollbar *, pScrollbar ) OUString sPageStr( GetPageStr( nPhNum, nVirtNum, sDisplay )); SwContentAtPos aCnt( SwContentAtPos::SW_OUTLINE ); - m_pWrtShell->GetContentAtPos( aPos, aCnt ); - if( !aCnt.sStr.isEmpty() ) + bool bSuccess = m_pWrtShell->GetContentAtPos(aPos, aCnt); + if (bSuccess && !aCnt.sStr.isEmpty()) { sPageStr += " - "; sal_Int32 nChunkLen = std::min<sal_Int32>(aCnt.sStr.getLength(), 80); |