mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-23 22:09:16 +02:00
gtk: fix bug in GetObject for ExtCreatePen
git-svn-id: trunk@17159 -
This commit is contained in:
parent
1eebfd9824
commit
8436b0266e
@ -5550,7 +5550,7 @@ begin
|
|||||||
if GDIObject^.GDIPenDashesCount > 0 then
|
if GDIObject^.GDIPenDashesCount > 0 then
|
||||||
begin
|
begin
|
||||||
for i := 0 to GDIObject^.GDIPenDashesCount - 1 do
|
for i := 0 to GDIObject^.GDIPenDashesCount - 1 do
|
||||||
PDWord(AExtLogPen^.elpStyleEntry)[i] := GDIObject^.GDIPenDashes[i];
|
PDWord(@AExtLogPen^.elpStyleEntry)[i] := GDIObject^.GDIPenDashes[i];
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
AExtLogPen^.elpStyleEntry[0] := 0;
|
AExtLogPen^.elpStyleEntry[0] := 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user