1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
  
     | 
    
      From: Leonardo Zide <leozide@users.noreply.github.com>
Date: Wed, 9 Oct 2024 12:01:49 -0700
Subject: Fixed offscreen check.
Bug-Debian: https://bugs.debian.org/1033440
Origin: upstream, https://github.com/leozide/leocad/commit/5772688318f8b7df41c2b8ae5b5659f8c4b2c1e5
Forwarded: not-needed
---
 common/lc_context.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/common/lc_context.h b/common/lc_context.h
index 6af31c7..a53638a 100644
--- a/common/lc_context.h
+++ b/common/lc_context.h
@@ -134,7 +134,7 @@ public:
 
 	bool IsOffscreen() const
 	{
-		return mWidget != nullptr;
+		return mWidget == nullptr;
 	}
 
 	void ClearColorAndDepth(const lcVector4& ClearColor);
 
     |