QsciScintillaCompat: harmonized some code. eric7

Sun, 24 Oct 2021 18:09:44 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 24 Oct 2021 18:09:44 +0200
branch
eric7
changeset 8716
7bd161e50995
parent 8714
85deb98a0a6c
child 8718
3456fb2a2cb0

QsciScintillaCompat: harmonized some code.

eric7/QScintilla/QsciScintillaCompat.py file | annotate | diff | comparison | revisions
diff -r 85deb98a0a6c -r 7bd161e50995 eric7/QScintilla/QsciScintillaCompat.py
--- 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)
     
 ##    #########################################################################

eric ide

mercurial