Several fixes for Lua Widgets and Themes options (#4648)

This commit is contained in:
Damjan Adamic
2017-03-21 07:42:00 +01:00
committed by Bertrand Songis
parent 1f1098e270
commit 8375304d61
2 changed files with 20 additions and 5 deletions
+1
View File
@@ -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));
}