diff --git a/src/activities/home/MyLibraryActivity.cpp b/src/activities/home/MyLibraryActivity.cpp index 108d2078..c41e2277 100644 --- a/src/activities/home/MyLibraryActivity.cpp +++ b/src/activities/home/MyLibraryActivity.cpp @@ -342,7 +342,7 @@ void MyLibraryActivity::renderRecentTab() const { } const size_t dot = title.find_last_of('.'); if (dot != std::string::npos) { - title = title.substr(0, dot); + title.resize(dot); } } auto truncatedTitle = renderer.truncatedText(UI_12_FONT_ID, title.c_str(), pageWidth - LEFT_MARGIN - RIGHT_MARGIN);