fix: settings persist on font clear, reserve() before push_back, minor (#2519)
This commit is contained in:
1 parent
57447a56a6
commit
79b4d63ee2
6 files changed
+17
-10
No files matched your search
+1
-1
@@ -42,7 +42,7 @@ std::string Txt::getTitle() const {
|
||||
|
||||
// Remove .txt extension
|
||||
if (FsHelpers::hasTxtExtension(filename)) {
|
||||
filename = filename.substr(0, filename.length() - 4);
|
||||
filename.resize(filename.length() - 4);
|
||||
}
|
||||
|
||||
return filename;
|
||||
|
||||
Reference in new issue
Block a user