Gtk2: do not apply devctx offset into penPos, regression of r39034 #d433d82e1c.issue #23057

git-svn-id: trunk@39036 -
This commit is contained in:
zeljko 2012-10-10 13:08:25 +00:00
parent a81d9e96aa
commit 12653c735d

View File

@ -6471,7 +6471,7 @@ begin
gdk_draw_line(DevCtx.Drawable, DevCtx.GC, FromPt.X, FromPt.Y, ToPt.X, ToPt.Y);
{$IFDEF DebugGDK}EndGDKErrorTrap;{$ENDIF}
DevCtx.PenPos := Point(X+DevCtx.Offset.X, Y+DevCtx.Offset.Y);
DevCtx.PenPos := Point(X, Y);
Result := True;
end;