mirror of
https://git.mirrors.martin98.com/https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-16 05:36:04 +08:00
FIX:the last char in a new line didn't display
Change-Id: I0bc21764259d93277e16db02ece838fcfed0b657
This commit is contained in:
parent
407a863a6f
commit
6bfd1a4322
@ -371,7 +371,7 @@ void NotificationManager::PopNotification::count_lines()
|
|||||||
}
|
}
|
||||||
|
|
||||||
m_endlines.clear();
|
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);
|
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) {
|
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…
x
Reference in New Issue
Block a user