Set spans on empty strings

Differential Revision: D2612574

fb-gh-sync-id: 17b93f42a773ea6239990c6b0bd9bf4f32f8b455
This commit is contained in:
Andrei Coman 2015-11-03 14:23:26 -08:00 committed by facebook-github-bot-4
parent c5b990f65f
commit 5ed8c6732e
1 changed files with 1 additions and 1 deletions

View File

@ -105,7 +105,7 @@ public class ReactTextShadowNode extends LayoutShadowNode {
((ReactTextShadowNode) child).markUpdateSeen();
}
int end = sb.length();
if (end > start) {
if (end >= start) {
if (textCSSNode.mIsColorSet) {
ops.add(new SetSpanOperation(start, end, new ForegroundColorSpan(textCSSNode.mColor)));
}