mirror of
https://github.com/fergalmoran/flameshot.git
synced 2026-01-08 03:59:41 +00:00
Fix draw a single pixel with pencil
This commit is contained in:
@@ -53,7 +53,11 @@ void PencilTool::processImage(
|
||||
const int thickness)
|
||||
{
|
||||
painter.setPen(QPen(color, 2 + thickness));
|
||||
painter.drawPolyline(points.data(), points.size());
|
||||
if (points.length() == 2) {
|
||||
painter.drawLine(points[0], points[1]);
|
||||
} else {
|
||||
painter.drawPolyline(points.data(), points.size());
|
||||
}
|
||||
}
|
||||
|
||||
void PencilTool::onPressed() {
|
||||
|
||||
Reference in New Issue
Block a user