diff options
author | Warwick Allison <warwick.allison@nokia.com> | 2009-11-02 23:35:08 (GMT) |
---|---|---|
committer | Warwick Allison <warwick.allison@nokia.com> | 2009-11-02 23:35:08 (GMT) |
commit | 5aea907a86fadf2c4a1223517ad3e28cba71a9d2 (patch) | |
tree | 40be4059302efe560bd22e387fe5a373e1b31a17 /demos | |
parent | 170cf2d84158a071f8564c3fa65f6fd6afcada44 (diff) | |
download | Qt-5aea907a86fadf2c4a1223517ad3e28cba71a9d2.zip Qt-5aea907a86fadf2c4a1223517ad3e28cba71a9d2.tar.gz Qt-5aea907a86fadf2c4a1223517ad3e28cba71a9d2.tar.bz2 |
Fix assertion (sc not declared).
Diffstat (limited to 'demos')
-rw-r--r-- | demos/declarative/webbrowser/webbrowser.qml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/demos/declarative/webbrowser/webbrowser.qml b/demos/declarative/webbrowser/webbrowser.qml index 3b1ea57..cfc2aa7 100644 --- a/demos/declarative/webbrowser/webbrowser.qml +++ b/demos/declarative/webbrowser/webbrowser.qml @@ -271,7 +271,7 @@ Item { } onZooming: { if (centerX) { - sc = zoom/zoomFactor; + var sc = zoom/zoomFactor; scaleAnim.to = sc; flickVX.from = flickable.viewportX flickVX.to = Math.min(Math.max(0,centerX-flickable.width/2),webView.width*sc-flickable.width) |