Skip to content

Commit f0c83c5

Browse files
committed
Fixed places where m_CurrentPlugin was not restored in ExecutePluginScript (Lua)
1 parent 6226850 commit f0c83c5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

plugins.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,7 @@ bool CPlugin::ExecutePluginScript (const char * sName,
282282
nInvocationCount,
283283
NULL, NULL, NULL,
284284
&bResult);
285+
m_pDoc->m_CurrentPlugin = pSavedPlugin;
285286
return bResult;
286287
} // end of Lua
287288

@@ -378,6 +379,7 @@ bool CPlugin::ExecutePluginScript (const char * sName,
378379
nInvocationCount,
379380
NULL, NULL, NULL,
380381
&bResult);
382+
m_pDoc->m_CurrentPlugin = pSavedPlugin;
381383
return bResult;
382384
} // end of Lua
383385

@@ -472,6 +474,7 @@ bool CPlugin::ExecutePluginScript (const char * sName,
472474
nInvocationCount,
473475
NULL, NULL, NULL,
474476
&bResult);
477+
m_pDoc->m_CurrentPlugin = pSavedPlugin;
475478
return bResult;
476479
} // end of Lua
477480

0 commit comments

Comments
 (0)