summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
Diffstat (limited to 'svx')
-rw-r--r--svx/source/customshapes/EnhancedCustomShapeFontWork.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svx/source/customshapes/EnhancedCustomShapeFontWork.cxx b/svx/source/customshapes/EnhancedCustomShapeFontWork.cxx
index 11304d19b1..f73113c82f 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 );