summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKhaled Hosny <khaledhosny@eglug.org>2016-11-10 19:48:08 +0200
committerKhaled Hosny <khaledhosny@eglug.org>2016-11-10 19:48:08 +0200
commitba2137d5117f3cd63d781dd545726cefddbcb1ff (patch)
treec70e6e92b71df0f2991d7aaaa4ad6966f6c55451
parentddc107a1fcfc9813c34d67dbafbc1b233c880c83 (diff)
Reduce scope
Change-Id: I12f9f5edc4929264627ba949ebf95abd369778c6
-rw-r--r--vcl/source/gdi/CommonSalLayout.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/vcl/source/gdi/CommonSalLayout.cxx b/vcl/source/gdi/CommonSalLayout.cxx
index ac67aa7c4e17..ae5e442d995e 100644
--- a/vcl/source/gdi/CommonSalLayout.cxx
+++ b/vcl/source/gdi/CommonSalLayout.cxx
@@ -508,9 +508,6 @@ bool CommonSalLayout::LayoutText(ImplLayoutArgs& rArgs)
continue;
}
- sal_Int32 indexUtf16 = nCharPos;
- sal_UCS4 aChar = rArgs.mrStr.iterateCodePoints(&indexUtf16, 0);
-
bool bInCluster = false;
if (i > 0 && pHbGlyphInfos[i].cluster == pHbGlyphInfos[i - 1].cluster)
bInCluster = true;
@@ -532,10 +529,11 @@ bool CommonSalLayout::LayoutText(ImplLayoutArgs& rArgs)
else
{
#if HB_VERSION_ATLEAST(0, 9, 42)
+ sal_Int32 indexUtf16 = nCharPos;
+ sal_UCS4 aChar = rArgs.mrStr.iterateCodePoints(&indexUtf16, 0);
if (u_getIntPropertyValue(aChar, UCHAR_GENERAL_CATEGORY) == U_NON_SPACING_MARK)
bDiacritic = true;
#else
- (void) aChar;
// the font lacks GDEF table
if (pHbPositions[i].x_advance == 0)
bDiacritic = true;