MultiLanguage support - Fix for font validation. 17/40017/3
authorVictor Cebollada <v.cebollada@samsung.com>
Tue, 26 May 2015 14:31:51 +0000 (15:31 +0100)
committerVíctor Cebollada <v.cebollada@samsung.com>
Thu, 28 May 2015 06:32:56 +0000 (23:32 -0700)
The cache for the valid fonts per script is resized with the number of
supported scripts. Can not use the PushBack() as there is already space
for the item.

Change-Id: I024b112abc523adb7e9f185b1fd4c70f4ff8d060
Signed-off-by: Victor Cebollada <v.cebollada@samsung.com>
dali-toolkit/internal/text/multi-language-support-impl.cpp

index f4fdd18..47db1e2 100644 (file)
@@ -455,8 +455,7 @@ void MultilanguageSupport::ValidateFonts( const Vector<Character>& text,
         {
           validateFontsPerScript = new ValidateFontsPerScript();
 
         {
           validateFontsPerScript = new ValidateFontsPerScript();
 
-          mValidFontsPerScriptCache.PushBack( validateFontsPerScript );
-          validFontsPerScriptCacheBuffer = mValidFontsPerScriptCache.Begin();
+          *( validFontsPerScriptCacheBuffer + script ) = validateFontsPerScript;
         }
 
         if( NULL != validateFontsPerScript )
         }
 
         if( NULL != validateFontsPerScript )