mirror of
https://github.com/love2d/love.git
synced 2026-08-20 04:30:09 +02:00
Fix bug #1707
This commit is contained in:
@@ -896,14 +896,11 @@ void Font::getWrap(const ColoredCodepoints &codepoints, float wraplimit, std::ve
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Push the last line.
|
// Push the last line.
|
||||||
if (!wline.cps.empty())
|
lines.push_back(wline);
|
||||||
{
|
|
||||||
lines.push_back(wline);
|
|
||||||
|
|
||||||
// Ignore the width of any trailing spaces, for individual lines.
|
// Ignore the width of any trailing spaces, for individual lines.
|
||||||
if (linewidths)
|
if (linewidths)
|
||||||
linewidths->push_back(width - widthoftrailingspace);
|
linewidths->push_back(width - widthoftrailingspace);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Font::getWrap(const std::vector<ColoredString> &text, float wraplimit, std::vector<std::string> &lines, std::vector<int> *linewidths)
|
void Font::getWrap(const std::vector<ColoredString> &text, float wraplimit, std::vector<std::string> &lines, std::vector<int> *linewidths)
|
||||||
|
|||||||
Reference in New Issue
Block a user