gtk3: Fixed LineTo implementation. Closes #40323.

The function `cairo_stroke` causes the current path to be cleared from
the cairo context. Thus we loose the current position.

We replace is with `cairo_stroke_preserve` in order to preserves the
path within the cairo context.
This commit is contained in:
Abou Al Montacir 2023-06-17 10:36:32 +02:00
parent 7d438f07af
commit 395a00614e

View File

@ -2315,7 +2315,7 @@ begin
end else
cairo_line_to(pcr,X+PixelOffset, Y+PixelOffset);
cairo_stroke(pcr);
cairo_stroke_preserve(pcr);
Result := True;
end;