diff Core/Lua/LuaFunctionCall.cpp @ 3442:dd1e68f2d0c0

Fix issue #106 (Unable to export preview as jpeg from Lua script)
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 24 Jun 2019 16:06:47 +0200
parents 4e43e67f8ecf
children 94f4a18a79cc
line wrap: on
line diff
--- a/Core/Lua/LuaFunctionCall.cpp	Mon Jun 24 12:37:52 2019 +0200
+++ b/Core/Lua/LuaFunctionCall.cpp	Mon Jun 24 16:06:47 2019 +0200
@@ -134,7 +134,7 @@
                                       bool keepStrings)
   {
     ExecuteInternal(1);
-    context_.GetJson(result, lua_gettop(context_.lua_), keepStrings);
+    context_.GetJson(result, context_.lua_, lua_gettop(context_.lua_), keepStrings);
   }