diff --git a/Middlewares/floatpump/Src/Menu.cpp b/Middlewares/floatpump/Src/Menu.cpp index 94b2ce3..9073d6a 100644 --- a/Middlewares/floatpump/Src/Menu.cpp +++ b/Middlewares/floatpump/Src/Menu.cpp @@ -24,7 +24,7 @@ namespace floatpump::menu { list.reserve(m_submenus.size() + m_entries.size()); - //Append al Submenus + //Append all Submenus for (auto &m_submenu: m_submenus) { list.push_back(m_submenu->printLine()); } diff --git a/Middlewares/floatpump/Src/Menu_Entry.cpp b/Middlewares/floatpump/Src/Menu_Entry.cpp index 4513165..f1ada37 100644 --- a/Middlewares/floatpump/Src/Menu_Entry.cpp +++ b/Middlewares/floatpump/Src/Menu_Entry.cpp @@ -11,7 +11,8 @@ namespace floatpump { //We have 19 characters width for displaying the entry -> fill with spaces int spaces = 19 - (m_name.length() + m_type.toString().length()); std::string spacer; - spacer.append(spaces, ' '); + if(spaces > 0) + spacer.append(spaces, ' '); return m_name + spacer + m_type.toString(); }