Merge "[3.0] Fixed crash issue by referencing unallocated memory" into tizen_3.0 accepted/tizen_3.0.m2_mobile accepted/tizen_3.0.m2_tv accepted/tizen_3.0.m2_wearable tizen_3.0.m2 accepted/tizen/3.0.m2/mobile/20170104.141503 accepted/tizen/3.0.m2/tv/20170104.142028 accepted/tizen/3.0.m2/wearable/20170104.142323 accepted/tizen/3.0/common/20170102.062847 accepted/tizen/3.0/ivi/20170101.231853 accepted/tizen/3.0/mobile/20170101.231728 accepted/tizen/3.0/tv/20170101.231749 accepted/tizen/3.0/wearable/20170101.231821 submit/tizen_3.0.m2/20170104.093751 submit/tizen_3.0/20161230.070625
authorsuhyung Eom <suhyung.eom@samsung.com>
Fri, 30 Dec 2016 06:27:35 +0000 (22:27 -0800)
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>
Fri, 30 Dec 2016 06:27:35 +0000 (22:27 -0800)
dali-toolkit/internal/text/multi-language-support-impl.cpp

index ae9a68b..c803c1d 100644 (file)
@@ -477,7 +477,7 @@ void MultilanguageSupport::ValidateFonts( const Vector<Character>& text,
     currentFontId = fontId;
 
     // Get the script for the current character.
-    const Script script = GetScript( index,
+    Script script = GetScript( index,
                                      scriptRunIt,
                                      scriptRunEndIt );
 
@@ -494,6 +494,10 @@ void MultilanguageSupport::ValidateFonts( const Vector<Character>& text,
                      description.path.c_str() );
     }
 #endif
+    if (script == TextAbstraction::UNKNOWN)
+    {
+      script = TextAbstraction::LATIN;
+    }
 
     // Validate whether the current character is supported by the given font.
     bool isValidFont = false;