fic cppcheck

This commit is contained in:
Eliz Kilic 2026-01-23 13:23:27 +00:00
parent 87873c5d05
commit 03cc728f6f

View File

@ -342,7 +342,7 @@ void MyLibraryActivity::renderRecentTab() const {
} }
const size_t dot = title.find_last_of('.'); const size_t dot = title.find_last_of('.');
if (dot != std::string::npos) { 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); auto truncatedTitle = renderer.truncatedText(UI_12_FONT_ID, title.c_str(), pageWidth - LEFT_MARGIN - RIGHT_MARGIN);