diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-10-07 15:00:48 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-10-07 21:05:17 +0100 |
commit | 31d2f8ab0f572a11482e9aec096d51b984ec36d9 (patch) | |
tree | 0f37912312223a8bbbf9426150e92fa4da87ef39 | |
parent | 99fa3b7df7c97b7adc97092baf3f147e165d8576 (diff) |
coverity#1000506 Unchecked return value
Change-Id: I71e824e7f0e279582f12d5cb9443a4177551a705
-rw-r--r-- | vcl/source/outdev/text.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vcl/source/outdev/text.cxx b/vcl/source/outdev/text.cxx index defb3b9c1ca8..6919746f47e0 100644 --- a/vcl/source/outdev/text.cxx +++ b/vcl/source/outdev/text.cxx @@ -1409,7 +1409,8 @@ bool OutputDevice::GetTextIsRTL( const OUString& rString, sal_Int32 nIndex, sal_ ImplLayoutArgs aArgs = ImplPrepareLayoutArgs( aStr, nIndex, nLen, 0, NULL ); bool bRTL = false; int nCharPos = -1; - aArgs.GetNextPos( &nCharPos, &bRTL ); + if (!aArgs.GetNextPos(&nCharPos, &bRTL)) + return false; return (nCharPos != nIndex); } |