mirror of
https://github.com/fralx/LimeReport.git
synced 2025-01-11 17:18:10 +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){
|
if (reportItem){
|
||||||
QScriptValue svThis = se->globalObject().property("THIS");
|
QScriptValue svThis = se->globalObject().property("THIS");
|
||||||
if (svThis.isValid()){
|
if (svThis.isValid()){
|
||||||
se->newQObject(svThis, this);
|
se->newQObject(svThis, reportItem);
|
||||||
} else {
|
} else {
|
||||||
svThis = se->newQObject(this);
|
svThis = se->newQObject(reportItem);
|
||||||
se->globalObject().setProperty("THIS",svThis);
|
se->globalObject().setProperty("THIS",svThis);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user