~ubuntu-sdk-team/ubuntu-ui-toolkit/orientationManual

« back to all changes in this revision

Viewing changes to modules/Ubuntu/Components/TextCursor.qml

  • Committer: CI Train Bot
  • Author(s): Leo Arias, Christian Dywan, Nekhelesh Ramananthan, Tim Peeters, Zoltán Balogh
  • Date: 2015-03-27 12:35:52 UTC
  • mfrom: (1000.433.19 last_bugfix_vivid)
  • Revision ID: ci-train-bot@canonical.com-20150327123552-mdwg6mecr05akf0q
The very last bugfix landing for Vivid

Show diffs side-by-side

added added

removed removed

Lines of Context:
54
54
        var flickable = handler.main;
55
55
        do {
56
56
            flickable = flickable.parent;
57
 
        } while (!flickable.contentY && flickable != fakeCursor.parent);
 
57
        } while (flickable && !flickable.contentY && flickable != fakeCursor.parent);
58
58
        return fakeCursor.parent.mapFromItem(handler.main, cursorItem.x, cursorItem.y).y
59
59
    }
60
60