mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-06 22:47:32 -06:00
FIX:the last char in a new line didn't display
Change-Id: I0bc21764259d93277e16db02ece838fcfed0b657
This commit is contained in:
parent
407a863a6f
commit
6bfd1a4322
1 changed files with 1 additions and 1 deletions
|
@ -371,7 +371,7 @@ void NotificationManager::PopNotification::count_lines()
|
|||
}
|
||||
|
||||
m_endlines.clear();
|
||||
while (last_end < text.length() - 1)
|
||||
while (last_end < text.length())
|
||||
{
|
||||
size_t next_hard_end = text.find_first_of('\n', last_end);
|
||||
if (next_hard_end != std::string::npos && ImGui::CalcTextSize(text.substr(last_end, next_hard_end - last_end).c_str()).x < m_window_width - m_window_width_offset) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue