File: background-fix-2.patch

package info (click to toggle)
leocad 23.03-3
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 7,932 kB
  • sloc: cpp: 41,865; xml: 9,353; python: 81; sh: 33; makefile: 16
file content (24 lines) | stat: -rw-r--r-- 691 bytes parent folder | download
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);