mirror of
https://github.com/fralx/LimeReport.git
synced 2024-12-24 00:33:02 +03:00
"THIS" pointer to report item has been fixed
This commit is contained in:
parent
7f4510073e
commit
ad99677d9c
@ -551,9 +551,9 @@ QString ScriptEngineManager::expandScripts(QString context, QVariant& varValue,
|
||||
if (reportItem){
|
||||
QScriptValue svThis = se->globalObject().property("THIS");
|
||||
if (svThis.isValid()){
|
||||
se->newQObject(svThis, this);
|
||||
se->newQObject(svThis, reportItem);
|
||||
} else {
|
||||
svThis = se->newQObject(this);
|
||||
svThis = se->newQObject(reportItem);
|
||||
se->globalObject().setProperty("THIS",svThis);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user