File: Fix-uninitialized-class-member.patch

package info (click to toggle)
openscad 2021.01-9
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 36,096 kB
  • sloc: cpp: 53,199; sh: 4,384; ansic: 4,382; python: 1,813; yacc: 853; javascript: 762; lex: 417; lisp: 163; xml: 127; makefile: 118
file content (26 lines) | stat: -rw-r--r-- 1,053 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From: Kristian Nielsen <knielsen@knielsen-hq.org>
Date: Sun, 26 Feb 2023 15:35:00 +0100
Subject: Fix uninitialized class member

This patch can be dropped when importing next upstream release, as the
associated code is gone/rewritten upstream.

Forwarded: not-needed
---
 src/mainwin.cc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/mainwin.cc b/src/mainwin.cc
index f0e2837..2369ef1 100755
--- a/src/mainwin.cc
+++ b/src/mainwin.cc
@@ -178,7 +178,8 @@ void fileExportedMessage(const char *format, const QString &filename) {
 } // namespace
 
 MainWindow::MainWindow(const QStringList &filenames)
-	: top_ctx(Context::create<BuiltinContext>()), root_inst("group"), library_info_dialog(nullptr), font_list_dialog(nullptr),
+	: customizerEditor(nullptr),
+	  top_ctx(Context::create<BuiltinContext>()), root_inst("group"), library_info_dialog(nullptr), font_list_dialog(nullptr),
 	  procevents(false), tempFile(nullptr), progresswidget(nullptr), includes_mtime(0), deps_mtime(0), last_parser_error_pos(-1)
 {
 	setupUi(this);