mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-01 03:17:39 +01:00
Add missing locale guard for luadsp preset loading
That caused truncation of parameters to int when the decimal separator is not a period in the user's locale.
This commit is contained in:
parent
c71cc6fe5b
commit
ca7d4447de
1 changed files with 2 additions and 1 deletions
|
|
@ -22,7 +22,7 @@
|
|||
#include <glibmm/fileutils.h>
|
||||
|
||||
#include "pbd/gstdio_compat.h"
|
||||
|
||||
#include "pbd/locale_guard.h"
|
||||
#include "pbd/pthread_utils.h"
|
||||
|
||||
#include "ardour/audio_buffer.h"
|
||||
|
|
@ -1214,6 +1214,7 @@ LuaProc::load_preset (PresetRecord r)
|
|||
XMLProperty const * value = (*j)->property (X_("value"));
|
||||
assert (index);
|
||||
assert (value);
|
||||
LocaleGuard lg;
|
||||
set_parameter (atoi (index->value().c_str()), atof (value->value().c_str ()));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue