diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-01-15 15:14:25 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-01-15 15:36:23 +0000 |
commit | 878dcbee6488f2a3dfbc1f86abc8857cf6608d20 (patch) | |
tree | 8a55581e7cb73f7eb31edc835bacdb13855cdfa2 /svx/source/customshapes/EnhancedCustomShapeFontWork.cxx | |
parent | 838c8889491b7e5b08f681b7f85740784c0c1a3b (diff) |
more xub_Strlen->sal_Int32
Change-Id: I9bab4c8c0e5b62eace308b90a43800c21c9cba41
Diffstat (limited to 'svx/source/customshapes/EnhancedCustomShapeFontWork.cxx')
-rw-r--r-- | svx/source/customshapes/EnhancedCustomShapeFontWork.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/svx/source/customshapes/EnhancedCustomShapeFontWork.cxx b/svx/source/customshapes/EnhancedCustomShapeFontWork.cxx index e7a67faa93ef..9f131f1fea14 100644 --- a/svx/source/customshapes/EnhancedCustomShapeFontWork.cxx +++ b/svx/source/customshapes/EnhancedCustomShapeFontWork.cxx @@ -230,9 +230,8 @@ void GetTextAreaOutline( const FWData& rFWData, const SdrObject* pCustomShape, F nScriptType = xBI->getScriptType( rText, 0 ); if( i18n::ScriptType::WEAK == nScriptType ) { - sal_uInt16 nChg = 0; - nChg = (xub_StrLen)xBI->endOfScript( rText, nChg, nScriptType ); - if( nChg < rText.getLength() ) + sal_Int32 nChg = xBI->endOfScript( rText, nChg, nScriptType ); + if (nChg < rText.getLength() && nChg >= 0) nScriptType = xBI->getScriptType( rText, nChg ); else nScriptType = i18n::ScriptType::LATIN; |