commit 03c361655089e7e8c5b122ab56096c9c21eaf413
parent 8a545127cdaf8b13a08fb9b8035277e5240c7b68
Author: AnClark Liu <anclarkliu@outlook.com>
Date: Tue, 10 Jan 2023 22:03:30 +0800
Fix loop variable error on LV2export
Location: "Write preset.ttl" section. Index of program was erroneously
passed to plugin.getStateHints(), which made LV2export misbehave.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/distrho/src/DistrhoPluginLV2export.cpp b/distrho/src/DistrhoPluginLV2export.cpp
@@ -1632,7 +1632,7 @@ void lv2_generate_ttl(const char* const basename)
presetString += " <";
- if (plugin.getStateHints(i) & kStateIsHostReadable)
+ if (plugin.getStateHints(j) & kStateIsHostReadable)
presetString += DISTRHO_PLUGIN_URI "#";
else
presetString += DISTRHO_PLUGIN_LV2_STATE_PREFIX;