This possibly avoids a crash on no-letters input

git-svn-id: https://cld2.googlecode.com/svn/trunk@170 b252ecd4-b096-bf77-eb8e-91563289f87e
This commit is contained in:
dsites@google.com
2014-10-24 23:50:00 +00:00
parent 6e94c9e178
commit 5f505ac67a

View File

@@ -1054,7 +1054,9 @@ void ScriptScanner::LowerScriptSpan(LangSpan* span) {
// Buffer ALWAYS has leading space and trailing space space space NUL
bool ScriptScanner::GetOneScriptSpanLower(LangSpan* span) {
bool ok = GetOneScriptSpan(span);
LowerScriptSpan(span);
if (ok) {
LowerScriptSpan(span);
}
return ok;
}