Mercurial > hg > orthanc
comparison 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 |
comparison
equal
deleted
inserted
replaced
3441:6cc72ebfd6ef | 3442:dd1e68f2d0c0 |
---|---|
132 | 132 |
133 void LuaFunctionCall::ExecuteToJson(Json::Value& result, | 133 void LuaFunctionCall::ExecuteToJson(Json::Value& result, |
134 bool keepStrings) | 134 bool keepStrings) |
135 { | 135 { |
136 ExecuteInternal(1); | 136 ExecuteInternal(1); |
137 context_.GetJson(result, lua_gettop(context_.lua_), keepStrings); | 137 context_.GetJson(result, context_.lua_, lua_gettop(context_.lua_), keepStrings); |
138 } | 138 } |
139 | 139 |
140 | 140 |
141 void LuaFunctionCall::ExecuteToString(std::string& result) | 141 void LuaFunctionCall::ExecuteToString(std::string& result) |
142 { | 142 { |