Sun, 24 Oct 2021 18:09:44 +0200
QsciScintillaCompat: harmonized some code.
eric7/QScintilla/QsciScintillaCompat.py | file | annotate | diff | comparison | revisions |
--- a/eric7/QScintilla/QsciScintillaCompat.py Sat Oct 23 18:58:16 2021 +0200 +++ b/eric7/QScintilla/QsciScintillaCompat.py Sun Oct 24 18:09:44 2021 +0200 @@ -1695,8 +1695,7 @@ @return tuple containing the line number and index number @rtype tuple of (int, int) """ - pos = self.SendScintilla(QsciScintilla.SCI_POSITIONFROMPOINT, - point.x(), point.y()) + pos = self.positionFromPoint(point) return self.lineIndexFromPosition(pos) ## #########################################################################