Skip to content

Commit

Permalink
Set spans on empty strings
Browse files Browse the repository at this point in the history
Differential Revision: D2612574

fb-gh-sync-id: 17b93f42a773ea6239990c6b0bd9bf4f32f8b455
  • Loading branch information
andreicoman11 authored and facebook-github-bot-4 committed Nov 3, 2015
1 parent c5b990f commit 5ed8c67
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ private static final void buildSpannedFromTextCSSNode(
((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)));
}
Expand Down

0 comments on commit 5ed8c67

Please sign in to comment.