Commit d62f0ca9 authored by Dmitry Kazakov's avatar Dmitry Kazakov
Browse files

Fix sampling in dulling mode when radius is too small (e.g. 1px)

parent 006e43ac
......@@ -256,8 +256,8 @@ void sampleDullingColor(const QRect &srcRect,
KoColor lastPickedColor(*resultColor);
for (int i = 0; i < minSamples; i++) {
const QPoint pt(hGen.generate(sampleRect.width()),
vGen.generate(sampleRect.height()));
const QPoint pt(hGen.generate(sampleRect.width() - 1),
vGen.generate(sampleRect.height() - 1));
weightingModeWrapper.samplePixel(pt);
}
......
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