From 14549c1a6779ca06ec5e43f197154cc4ecbcbf8b Mon Sep 17 00:00:00 2001 From: Rebecca Breu Date: Fri, 1 Mar 2024 20:25:14 +0100 Subject: [PATCH] Fix crop outline on zoomed in images --- CHANGELOG.rst | 6 ++++-- beeref/items.py | 4 +++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 6ebbd4d..16b1c97 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -12,9 +12,11 @@ Fixed ----- * Fixed a crash when pressing the keyboard shortcut for New Scene - while in the process of doing a rubberband selection + while in the process of doing a rubberband selection. * The checkmark of the menu entry Images -> Grayscale is now updating - correctly depending on the selected images + correctly depending on the selected images. +* Removed black line under marching ants outline of crop mode, which + would scale with the image and get potentially very thick. 0.3.2 - 2024-01-21 diff --git a/beeref/items.py b/beeref/items.py index 207184b..82a22cb 100644 --- a/beeref/items.py +++ b/beeref/items.py @@ -384,7 +384,9 @@ class BeePixmapItem(BeeItemMixin, QtWidgets.QGraphicsPixmapItem): color = QtGui.QColor(0, 0, 0) color.setAlpha(100) painter.setBrush(QtGui.QBrush(color)) - painter.setPen(QtGui.QPen()) + pen = QtGui.QPen() + pen.setWidth(0) + painter.setPen(pen) painter.drawPath(path) painter.setBrush(QtGui.QBrush())