mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-10 13:00:29 +03:00
LibGUI: Don't try to paint items in model-less IconView :^)
Fixes #6079.
This commit is contained in:
parent
f1ea092d8f
commit
64d4921f35
Notes:
sideshowbarker
2024-07-18 20:51:29 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/64d4921f353
@ -515,6 +515,9 @@ void IconView::paint_event(PaintEvent& event)
|
||||
|
||||
painter.fill_rect(event.rect(), fill_with_background_color() ? widget_background_color : Color::Transparent);
|
||||
|
||||
if (!model())
|
||||
return;
|
||||
|
||||
painter.translate(frame_thickness(), frame_thickness());
|
||||
painter.translate(-horizontal_scrollbar().value(), -vertical_scrollbar().value());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user