fix for filepath to string conversions

This commit is contained in:
shweet committed 2025-11-11 18:54:57 -05:00
1 parent 96dd0fbc50
commit 993f92e412
6 files changed
+13 -13

No files matched your search

+2 -2
View File
@@ -71,7 +71,7 @@ namespace anm2ed
{
this->path = !path.empty() ? path : this->path.string();
if (anm2.serialize(this->path, errorString))
if (anm2.serialize(this->path.string(), errorString))
{
toasts.info(std::format("Saved document to: {}", this->path.string()));
clean();
@@ -212,7 +212,7 @@ namespace anm2ed
auto add = [&]()
{
int id{};
if (anm2.spritesheet_add(directory_get(), path, id))
if (anm2.spritesheet_add(directory_get().string(), path, id))
{
anm2::Spritesheet& spritesheet = anm2.content.spritesheets[id];
this->spritesheet.selection = {id};