Skip to content

Commit

Permalink
Merge pull request #6654 from ajdapretnar/pytree-paint
Browse files Browse the repository at this point in the history
OWPythagoreanForest: Cast QPoint to QPointF
  • Loading branch information
janezd committed Nov 24, 2023
2 parents 42f633f + cf802f9 commit 23c3d07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Orange/widgets/visualize/owpythagoreanforest.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ def paint(self, painter, option, index):
# be painted in the centre of the rect
offset_w = (option.rect.width() - scene_w) / 2
offset_h = (option.rect.height() - scene_h) / 2
offset = option.rect.topLeft() + QPointF(offset_w, offset_h)
offset = QPointF(option.rect.topLeft()) + QPointF(offset_w, offset_h)
# Finally, we have all the data for the new rect in which to render
target_rect = QRectF(offset, QSizeF(scene_w, scene_h))

Expand Down

0 comments on commit 23c3d07

Please sign in to comment.