Make sure ui::label shaping doesn't get stuck in infinite loop
This commit is contained in:
parent
057cf1c4c7
commit
711253bbfe
1 changed files with 3 additions and 0 deletions
|
|
@ -234,6 +234,9 @@ namespace psemek::ui
|
||||||
++current_glyph;
|
++current_glyph;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (wrap_end && current_glyph == line_begin)
|
||||||
|
break;
|
||||||
|
|
||||||
if (wrap_end && current_glyph > line_begin)
|
if (wrap_end && current_glyph > line_begin)
|
||||||
{
|
{
|
||||||
std::size_t space_pos = current_glyph - 1;
|
std::size_t space_pos = current_glyph - 1;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue