summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornerdopolis <bluescreen_avenger@verizon.net>2023-12-12 20:56:30 -0500
committern3rdopolis <bluescreenavenger@gmail.com>2023-12-16 13:25:01 +0000
commit0083c97ffa2a7c6914bfa35a0cd38899e67e79ea (patch)
treea1fa8e6ca210ced4e1d6a80453b6e76740e64d8d
parent5f7b364d07f8fe6f142c82497d0ab0d9085c7267 (diff)
ply-entry: Don't crash hiding an entry that is already hidden
-rw-r--r--src/libply-splash-graphics/ply-entry.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libply-splash-graphics/ply-entry.c b/src/libply-splash-graphics/ply-entry.c
index 1d4d8070..3170ed52 100644
--- a/src/libply-splash-graphics/ply-entry.c
+++ b/src/libply-splash-graphics/ply-entry.c
@@ -148,6 +148,9 @@ ply_entry_load (ply_entry_t *entry)
static void
ply_entry_draw (ply_entry_t *entry)
{
+ if (entry->is_hidden)
+ return;
+
ply_pixel_display_draw_area (entry->display,
entry->area.x,
entry->area.y,