Skip to content

Commit

Permalink
Fix typo in error string.
Browse files Browse the repository at this point in the history
Provide correct line/column information in case of error
while creating dynamic qml object.

Task-number: QTBUG-24065
Change-Id: I283408c898706dc6df57e21a57d97bafd56d9aaa
Reviewed-by: Martin Jones <martin.jones@nokia.com>
  • Loading branch information
Glenn Watson authored and Qt by Nokia committed Feb 14, 2012
1 parent e1c2e32 commit be47ec2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/declarative/qml/v8/qdeclarativebuiltinfunctions.cpp
Expand Up @@ -992,7 +992,7 @@ v8::Handle<v8::Value> createQmlObject(const v8::Arguments &args)
errorstr += QLatin1String("\n ") + error.toString();
v8::Local<v8::Object> qmlerror = v8::Object::New();
qmlerror->Set(v8::String::New("lineNumber"), v8::Integer::New(error.line()));
qmlerror->Set(v8::String::New("columnNumber"), v8::Integer::New(error.line()));
qmlerror->Set(v8::String::New("columnNumber"), v8::Integer::New(error.column()));
qmlerror->Set(v8::String::New("fileName"), engine->toString(error.url().toString()));
qmlerror->Set(v8::String::New("message"), engine->toString(error.description()));
qmlerrors->Set(ii, qmlerror);
Expand Down

0 comments on commit be47ec2

Please sign in to comment.