summaryrefslogtreecommitdiffstats
path: root/editeng
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2012-03-29 11:04:03 +0200
committerStephan Bergmann <sbergman@redhat.com>2012-03-29 11:04:03 +0200
commita159dfbea39dd3470837e73bf2df4cd2a0f3e806 (patch)
tree651a492915612e0828d839ccc685dd8fcd037d2b /editeng
parentfix constness compile error (diff)
downloadcore-a159dfbea39dd3470837e73bf2df4cd2a0f3e806.tar.gz
core-a159dfbea39dd3470837e73bf2df4cd2a0f3e806.zip
-Werror=sign-compare
...solved by recasting the offending expression.
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/editeng/editeng.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/editeng/source/editeng/editeng.cxx b/editeng/source/editeng/editeng.cxx
index 2b246c90e588..4f9184f462d3 100644
--- a/editeng/source/editeng/editeng.cxx
+++ b/editeng/source/editeng/editeng.cxx
@@ -1320,7 +1320,7 @@ EditTextObject* EditEngine::CreateTextObject( sal_uInt16 nPara, sal_uInt16 nPara
{
DBG_CHKTHIS( EditEngine, 0 );
DBG_ASSERT( nPara < pImpEditEngine->GetEditDoc().Count(), "CreateTextObject: Startpara out of Range" );
- DBG_ASSERT( nPara+nParas-1 < pImpEditEngine->GetEditDoc().Count(), "CreateTextObject: Endpara out of Range" );
+ DBG_ASSERT( nParas <= pImpEditEngine->GetEditDoc().Count() - nPara, "CreateTextObject: Endpara out of Range" );
ContentNode* pStartNode = pImpEditEngine->GetEditDoc().SafeGetObject( nPara );
ContentNode* pEndNode = pImpEditEngine->GetEditDoc().SafeGetObject( nPara+nParas-1 );