From 81291cd6de56d758d3ba059f151a7ebf539d3e9d Mon Sep 17 00:00:00 2001
From: Mark Harfouche <mark.harfouche@gmail.com>
Date: Sun, 30 Mar 2025 01:18:11 +0000
Subject: [PATCH] Fix undefined variable in qsgroundedrectangularimagenode

---
 modules/gui/qt/util/qsgroundedrectangularimagenode.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/gui/qt/util/qsgroundedrectangularimagenode.cpp b/modules/gui/qt/util/qsgroundedrectangularimagenode.cpp
index ccb60a836d01..6fba80198957 100644
--- a/modules/gui/qt/util/qsgroundedrectangularimagenode.cpp
+++ b/modules/gui/qt/util/qsgroundedrectangularimagenode.cpp
@@ -29,7 +29,7 @@ template<class T>
 T QSGRoundedRectangularImageNode::material_cast(QSGMaterial* const material)
 {
 #ifdef NDEBUG
-    return static_cast<T>(object);
+    return static_cast<T>(material);
 #else
     const auto ret = dynamic_cast<T>(material);
     assert(ret); // incompatible material type
-- 
GitLab