X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftext%2Fmulti-language-support-impl.cpp;h=bb3398173ced902e68ecbcd22a69e80b1c395d0c;hb=5c07fde9dd6a022e2080c871994499e56eff89aa;hp=5284a3b713956d693f4650c31aaa276b0d8a3165;hpb=06e563f8a982e25a0efe2d91c794657dc8e4bc4a;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/text/multi-language-support-impl.cpp b/dali-toolkit/internal/text/multi-language-support-impl.cpp index 5284a3b..bb33981 100644 --- a/dali-toolkit/internal/text/multi-language-support-impl.cpp +++ b/dali-toolkit/internal/text/multi-language-support-impl.cpp @@ -19,17 +19,9 @@ #include // EXTERNAL INCLUDES -#include #include #include #include -#include - -// INTERNAL INCLUDES -#include -#include -#include -#include namespace Dali { @@ -333,10 +325,10 @@ void MultilanguageSupport::SetScripts( const Vector& text, // Adds white spaces between characters. currentScriptRun.characterRun.numberOfCharacters += numberOfAllScriptCharacters; numberOfAllScriptCharacters = 0u; - - // Add one more character to the run. - ++currentScriptRun.characterRun.numberOfCharacters; } + + // Add one more character to the run. + ++currentScriptRun.characterRun.numberOfCharacters; } } @@ -371,7 +363,7 @@ void MultilanguageSupport::ValidateFonts( const Vector& text, // Copy the fonts set by application developers. const Length numberOfFontRuns = fonts.Count(); - const Vector definedFonts = fonts; + const Vector userSetFonts = fonts; fonts.Clear(); // Traverse the characters and validate/set the fonts. @@ -394,8 +386,8 @@ void MultilanguageSupport::ValidateFonts( const Vector& text, TextAbstraction::FontClient fontClient = TextAbstraction::FontClient::Get(); // Iterators of the font and script runs. - Vector::ConstIterator fontRunIt = definedFonts.Begin(); - Vector::ConstIterator fontRunEndIt = definedFonts.End(); + Vector::ConstIterator fontRunIt = userSetFonts.Begin(); + Vector::ConstIterator fontRunEndIt = userSetFonts.End(); Vector::ConstIterator scriptRunIt = scripts.Begin(); Vector::ConstIterator scriptRunEndIt = scripts.End();