Several fixes for Lua Widgets and Themes options (#4648)
This commit is contained in:
committed by
Bertrand Songis
parent
1f1098e270
commit
8375304d61
@@ -106,6 +106,7 @@ class WidgetFactory
|
||||
if (options) {
|
||||
int i = 0;
|
||||
for (const ZoneOption * option = options; option->name; option++) {
|
||||
TRACE("WidgetFactory::initPersistentData() setting option '%s'", option->name);
|
||||
// TODO compiler bug? The CPU freezes ... persistentData->options[i++] = option->deflt;
|
||||
memcpy(&persistentData->options[i++], &option->deflt, sizeof(ZoneOptionValue));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user