Skip to content

Commit 5ea8ef1

Browse files
committed
fix tap to point function: force draw a 1px long line instead of shape
1 parent 42d1a15 commit 5ea8ef1

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/widgets/DrawingWidget.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -590,10 +590,13 @@ void DrawingWidget::eventHandler(int source, int type, int id, QPointF pos, floa
590590
curs.drawing[id] = false;
591591
curs.hide(id);
592592
if(penType != ERASER && geo.size(id) < 2 && penType != SELECTION) {
593-
painter.begin(&image);
593+
int fpenStype = penStyle;
594+
penStyle = LINE;
594595
addPoint(id, pos+QPointF(0,1));
595-
drawFunc(id, pressure);
596+
painter.begin(&image);
597+
drawLineToFunc(id, pressure);
596598
painter.end();
599+
penStyle = fpenStype;
597600
}
598601
curEventButtons = 0;
599602

0 commit comments

Comments
 (0)