From: Victor Cebollada Date: Tue, 26 May 2015 14:31:51 +0000 (+0100) Subject: MultiLanguage support - Fix for font validation. X-Git-Tag: accepted/tizen/common/20150529.134038~9 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=commitdiff_plain;h=aba251333799fbbc15c773f5e0ee00cc7d9fce8b MultiLanguage support - Fix for font validation. 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 --- diff --git a/dali-toolkit/internal/text/multi-language-support-impl.cpp b/dali-toolkit/internal/text/multi-language-support-impl.cpp index f4fdd18..47db1e2 100644 --- a/dali-toolkit/internal/text/multi-language-support-impl.cpp +++ b/dali-toolkit/internal/text/multi-language-support-impl.cpp @@ -455,8 +455,7 @@ void MultilanguageSupport::ValidateFonts( const Vector& text, { validateFontsPerScript = new ValidateFontsPerScript(); - mValidFontsPerScriptCache.PushBack( validateFontsPerScript ); - validFontsPerScriptCacheBuffer = mValidFontsPerScriptCache.Begin(); + *( validFontsPerScriptCacheBuffer + script ) = validateFontsPerScript; } if( NULL != validateFontsPerScript )