mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-12 16:29:38 +02:00
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:
parent
7d438f07af
commit
395a00614e
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user