Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++

Also handle selection mask-mode for HDR

Wolthera van Hövell tot Westerflierfc70b713a097
diff --git a/libs/ui/kis_selection_decoration.cc b/libs/ui/kis_selection_decoration.cc
index 07ae3cba54..744e782585 100644
--- a/libs/ui/kis_selection_decoration.cc
+++ b/libs/ui/kis_selection_decoration.cc
@@ -243,7 +243,9 @@ void KisSelectionDecoration::drawDecoration(QPainter& gc, const QRectF& updateRe
QPainterPath p2;
p2.addRect(r2);
- gc.setBrush(m_maskColor);
+ KoColor c;
+ c.fromQColor(m_maskColor);
+ gc.setBrush(canvas->displayColorConverter()->convertColorToDisplayColorSpace(c));
gc.setPen(Qt::NoPen);
gc.drawPath(p1 - p2);