Correct the dimensions of displayed letter boxes.
This commit is contained in:
parent
7ce6fa42c1
commit
37c38cb9b2
1 changed files with 1 additions and 1 deletions
|
|
@ -67,7 +67,7 @@ class PageScene(QGraphicsScene):
|
||||||
for word in line:
|
for word in line:
|
||||||
for letter in word:
|
for letter in word:
|
||||||
if not letter.image.isspace:
|
if not letter.image.isspace:
|
||||||
self.addRect(letter.x1, letter.y1, letter.width, letter.height, letterPen, letterBrush)
|
self.addRect(letter.x1, letter.y1, letter.width - 1, letter.height - 1, letterPen, letterBrush)
|
||||||
self.addLine(line.x1, line.y1 + line.baseline, line.x2, line.y1 + line.baseline, linePen)
|
self.addLine(line.x1, line.y1 + line.baseline, line.x2, line.y1 + line.baseline, linePen)
|
||||||
# self.addRect(line.x1, line.y1, line.width, line.height, Qt.red)
|
# self.addRect(line.x1, line.y1, line.width, line.height, Qt.red)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue