Fix ui::label wrapping
This commit is contained in:
parent
d5baea48dd
commit
44d74b5bd8
1 changed files with 1 additions and 1 deletions
|
|
@ -476,7 +476,7 @@ namespace psemek::ui
|
||||||
if (wrap_end && current_item > line_begin)
|
if (wrap_end && current_item > line_begin)
|
||||||
{
|
{
|
||||||
std::size_t space_pos = current_item - 1;
|
std::size_t space_pos = current_item - 1;
|
||||||
while (space_pos > line_begin && (!items[current_item].character || !std::isspace(*items[space_pos].character)))
|
while (space_pos > line_begin && (!items[space_pos].character || !std::isspace(*items[space_pos].character)))
|
||||||
--space_pos;
|
--space_pos;
|
||||||
|
|
||||||
if (space_pos > line_begin)
|
if (space_pos > line_begin)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue