eric6/QScintilla/Editor.py

changeset 8298
83ddb87b3bc1
parent 8277
ea734702ae94
child 8400
b3eefd7e58d1
child 8470
7a2678e25528
equal deleted inserted replaced
8297:c1f9e30c6219 8298:83ddb87b3bc1
2721 ): 2721 ):
2722 # get the selection 2722 # get the selection
2723 fromLine, fromIndex, toLine, toIndex = self.getSelection() 2723 fromLine, fromIndex, toLine, toIndex = self.getSelection()
2724 if toIndex == 0: 2724 if toIndex == 0:
2725 toLine -= 1 2725 toLine -= 1
2726 # Qscintilla seems to print one line more than told 2726 # QScintilla seems to print one line more than told
2727 res = printer.printRange(self, fromLine, toLine - 1) 2727 res = printer.printRange(self, fromLine, toLine - 1)
2728 else: 2728 else:
2729 res = printer.printRange(self) 2729 res = printer.printRange(self)
2730 if res: 2730 if res:
2731 sb.showMessage(self.tr('Printing completed'), 2000) 2731 sb.showMessage(self.tr('Printing completed'), 2000)

eric ide

mercurial