Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
Fix text-justify (fixes #444)
Browse files Browse the repository at this point in the history
  • Loading branch information
jfirebaugh committed Aug 29, 2014
1 parent 2e8fb5f commit eb1fbc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/text/glyph_store.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ void FontStack::lineWrap(Shaping &shaping, const float lineHeight, const float m
}
}

maxLineLength = maxLineLength || shaping.back().x;
if (!maxLineLength) maxLineLength = shaping.back().x;

justifyLine(shaping, metrics, lineStartIndex, uint32_t(shaping.size()) - 1, justify);
align(shaping, justify, horizontalAlign, verticalAlign, maxLineLength, lineHeight, line);
Expand Down

0 comments on commit eb1fbc5

Please sign in to comment.