Gtk3: do not queue draw widget area if rect have invalid width or height.

This commit is contained in:
zeljan1 2025-01-23 22:54:54 +01:00
parent 9c1268e600
commit 7dfce26b3a

View File

@ -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);