From 4087c7510eca7bb4aed03ce962a2b58335d2ef63 Mon Sep 17 00:00:00 2001 From: apio Date: Sat, 8 Jun 2024 22:18:42 +0200 Subject: [PATCH] libui: Fix wrong return type --- libui/src/Image.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libui/src/Image.cpp b/libui/src/Image.cpp index 140f33ed..beed3731 100644 --- a/libui/src/Image.cpp +++ b/libui/src/Image.cpp @@ -46,7 +46,7 @@ namespace ui Result ImageWidget::draw(Canvas& canvas) { - if (!m_image) return; + if (!m_image) return {}; canvas.subcanvas({ 0, 0, m_image->width(), m_image->height() }).fill(m_image->pixels(), m_image->width()); return {}; }