webmcp
changeset 401:ad437022be90
Quick fix to avoid problems on document creation
author | jbe |
---|---|
date | Mon Jan 04 00:48:47 2016 +0100 (2016-01-04) |
parents | 7b183a70a37d |
children | 04172238d79b |
files | libraries/mondelefant/mondelefant_native.c |
line diff
1.1 --- a/libraries/mondelefant/mondelefant_native.c Mon Jan 04 00:42:28 2016 +0100 1.2 +++ b/libraries/mondelefant/mondelefant_native.c Mon Jan 04 00:48:47 2016 +0100 1.3 @@ -1755,6 +1755,7 @@ 1.4 lua_getfield(L, 4, "document_column"); // 6 1.5 if (lua_toboolean(L, 6)) { 1.6 lua_getfield(L, 1, "_column_info"); // 7 1.7 + if (!lua_isnil(L, 7)) { // TODO: quick fix to avoid problems on document creation 1.8 lua_pushvalue(L, 2); // 8 1.9 lua_gettable(L, 7); // 8 1.10 if (!lua_toboolean(L, 8)) { 1.11 @@ -1768,6 +1769,7 @@ 1.12 lua_settable(L, 6); 1.13 return 0; 1.14 } 1.15 + } // TODO: quick fix to avoid problems on document creation 1.16 } 1.17 lua_settop(L, 5); 1.18 // store value in data field info: