Fix small issues
This commit is contained in:
@@ -231,7 +231,7 @@ void Font::ProcessText(const StringView& text, Array<FontLineCache>& outputLines
|
||||
lastMoveLine = moveLine;
|
||||
}
|
||||
|
||||
if (tmpLine.LastCharIndex >= tmpLine.FirstCharIndex || text[textLength - 1] == '\n')
|
||||
if (textLength != 0 && (tmpLine.LastCharIndex >= tmpLine.FirstCharIndex || text[textLength - 1] == '\n'))
|
||||
{
|
||||
// Add line
|
||||
tmpLine.Size.X = cursorX;
|
||||
|
||||
@@ -238,7 +238,7 @@ namespace Flax.Build.Bindings
|
||||
result = FindApiTypeInfoInner(buildData, typeInfo, e.Value);
|
||||
if (result != null)
|
||||
{
|
||||
buildData.TypeCache.Add(typeInfo, result);
|
||||
buildData.TypeCache[typeInfo] = result;
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user