mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-08 16:38:17 +02:00
Gtk3: do not queue draw widget area if rect have invalid width or height.
This commit is contained in:
parent
9c1268e600
commit
7dfce26b3a
@ -3328,7 +3328,7 @@ procedure TGtk3Widget.Update(ARect: PRect);
|
||||
begin
|
||||
if IsWidgetOK then
|
||||
begin
|
||||
if ARect <> nil then
|
||||
if (ARect <> nil) and (aRect^.Width > 0) and (ARect^.Height > 0) then
|
||||
begin
|
||||
with ARect^ do
|
||||
FWidget^.queue_draw_area(Left, Top, Right - Left, Bottom - Top);
|
||||
|
Loading…
Reference in New Issue
Block a user