Skip to content

Commit

Permalink
Fix recent files history order on home view when the file count is gr…
Browse files Browse the repository at this point in the history
…eater than 10 (issue aseprite#2388)

This fix is backward compatible (it preserves Recent Files history of the older Aseprite versions)
  • Loading branch information
Gasparoken authored and dacap committed May 28, 2020
1 parent 0fc4989 commit b0d76d0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/recent_files.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Aseprite
// Copyright (C) 2018 Igara Studio S.A.
// Copyright (C) 2018-2020 Igara Studio S.A.
// Copyright (C) 2001-2018 David Capello
//
// This program is distributed under the terms of
Expand All @@ -12,8 +12,8 @@
#include "app/recent_files.h"

#include "app/ini_file.h"
#include "base/convert_to.h"
#include "base/fs.h"
#include "fmt/format.h"

#include <cstdio>
#include <cstring>
Expand Down Expand Up @@ -225,7 +225,7 @@ void RecentFiles::save()

for (int j=0; j<m_paths[i].size(); ++j) {
set_config_string(section,
base::convert_to<std::string>(j).c_str(),
fmt::format("{:04d}", j).c_str(),
m_paths[i][j].c_str());
}
// Special entry that indicates that we've already converted
Expand Down

0 comments on commit b0d76d0

Please sign in to comment.