Skip to content

Commit 26dde38

Browse files
committed
Code update
1 parent 12a3129 commit 26dde38

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

src/main/ui/sampler.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1648,7 +1648,10 @@ namespace lsp
16481648

16491649
// Obtain the parent directory
16501650
io::Path basedir;
1651-
io::Path *base = (path->get_parent(&basedir) == STATUS_OK) ? &basedir : NULL;
1651+
size_t flags = ui::EXPORT_FLAG_USER_FRIENDLY;
1652+
io::Path *base = (path->get_parent(&basedir) == STATUS_OK) ? &basedir : NULL;
1653+
if (base != NULL)
1654+
flags |= ui::EXPORT_FLAG_RELATIVE_PATHS;
16521655

16531656
// Create LSPC file
16541657
lspc::File fd;
@@ -1674,7 +1677,7 @@ namespace lsp
16741677
}
16751678

16761679
// Call wrapper to serialize
1677-
if ((res = pWrapper->export_settings(&s, base)) != STATUS_OK)
1680+
if ((res = pWrapper->export_settings(&s, flags, base)) != STATUS_OK)
16781681
{
16791682
s.close();
16801683
fd.close();

0 commit comments

Comments
 (0)