mirror of
https://github.com/aseprite/aseprite.git
synced 2025-02-21 03:40:57 +00:00
Remove ASSERT() that can fail in Graphics::doUIStringAlgorithm()
This commit is contained in:
parent
7f21deb4d5
commit
43d6867f98
@ -481,10 +481,11 @@ gfx::Size Graphics::doUIStringAlgorithm(const std::string& str, gfx::Color fg, g
|
|||||||
newBeg = end+1;
|
newBeg = end+1;
|
||||||
}
|
}
|
||||||
|
|
||||||
ASSERT(beg < end);
|
|
||||||
|
|
||||||
// Get the entire line to be painted
|
// Get the entire line to be painted
|
||||||
line = str.substr(beg, end-beg);
|
if (end != std::string::npos)
|
||||||
|
line = str.substr(beg, end-beg);
|
||||||
|
else
|
||||||
|
line.clear();
|
||||||
|
|
||||||
gfx::Size lineSize(
|
gfx::Size lineSize(
|
||||||
m_font->textLength(line.c_str()),
|
m_font->textLength(line.c_str()),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user