Commit 468643b6 authored by Jouni Pentikäinen's avatar Jouni Pentikäinen

Don't pick color from fully transparent reference images

BUG: 396358
parent de8d0412
......@@ -215,6 +215,8 @@ void KisReferenceImage::setFilename(const QString &filename)
QColor KisReferenceImage::getPixel(QPointF position)
if (transparency() == 1.0) return Qt::transparent;
const QSizeF shapeSize = size();
const QTransform scale = QTransform::fromScale(d->image.width() / shapeSize.width(), d->image.height() / shapeSize.height());
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment