[Libreoffice-commits] .: svx/source
Caolán McNamara
caolan at kemper.freedesktop.org
Wed Dec 1 08:05:40 PST 2010
svx/source/customshapes/EnhancedCustomShapeFontWork.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 7b82cada98ad2d13bb53ded9fee0210d9e241cb8
Author: Caolán McNamara <caolanm at redhat.com>
Date: Wed Dec 1 15:33:06 2010 +0000
cppcheck: can reduce the scope of this variable
diff --git a/svx/source/customshapes/EnhancedCustomShapeFontWork.cxx b/svx/source/customshapes/EnhancedCustomShapeFontWork.cxx
index 11304d1..f73113c 100644
--- a/svx/source/customshapes/EnhancedCustomShapeFontWork.cxx
+++ b/svx/source/customshapes/EnhancedCustomShapeFontWork.cxx
@@ -241,9 +241,9 @@ void GetTextAreaOutline( const FWData& rFWData, const SdrObject* pCustomShape, F
if ( xBI.is() )
{
nScriptType = xBI->getScriptType( rText, 0 );
- sal_uInt16 nChg = 0;
if( i18n::ScriptType::WEAK == nScriptType )
{
+ sal_uInt16 nChg = 0;
nChg = (xub_StrLen)xBI->endOfScript( rText, nChg, nScriptType );
if( nChg < rText.getLength() )
nScriptType = xBI->getScriptType( rText, nChg );
More information about the Libreoffice-commits
mailing list