From 31d2f8ab0f572a11482e9aec096d51b984ec36d9 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Tue, 7 Oct 2014 15:00:48 +0100 Subject: coverity#1000506 Unchecked return value Change-Id: I71e824e7f0e279582f12d5cb9443a4177551a705 --- vcl/source/outdev/text.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'vcl/source') 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); } -- cgit