Commit 1b6d1f9d authored by dmMaze's avatar dmMaze
Browse files

use qtpy

parent 505e00c7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -9,7 +9,7 @@ try:
    from qtpy.QtWidgets import QUndoStack

except:
    from PyQt6.QtGui import QUndoStack
    from qtpy.QtGui import QUndoStack

from .misc import ndarray2pixmap, ProjImgTrans
from .textitem import TextBlkItem, TextBlock
+2 −1
Original line number Diff line number Diff line
@@ -92,7 +92,8 @@ class VerticalTextDocumentLayout(QAbstractTextDocumentLayout):
            blpos = block.position()
            bllen = block.length()
            selections = []
            for sel in context.selections:
            context_sel = context.selections
            for sel in context_sel:
                selStart = sel.cursor.selectionStart() - blpos 
                selEnd = sel.cursor.selectionEnd() - blpos
                if selStart < bllen and selEnd > 0 and selEnd > selStart: