summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Jolly <Matt.Jolly@footclan.ninja>2022-09-17 09:04:42 +1000
committerSam James <sam@gentoo.org>2022-10-12 23:57:12 +0100
commit1ed1859c618ba42e8af07fa65c6e33595bf2158a (patch)
tree77429792ebadb329c5640d57d66eab3909ffbae4 /games-misc/solarus-quest-editor/files
parentgames-engines/solarus: add 1.6.5, 9999 (diff)
downloadgentoo-1ed1859c618ba42e8af07fa65c6e33595bf2158a.tar.gz
gentoo-1ed1859c618ba42e8af07fa65c6e33595bf2158a.tar.bz2
gentoo-1ed1859c618ba42e8af07fa65c6e33595bf2158a.zip
games-misc/solarus-quest-editor: new package, add 1.6.5, 9999
Signed-off-by: Matt Jolly <Matt.Jolly@footclan.ninja> Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'games-misc/solarus-quest-editor/files')
-rw-r--r--games-misc/solarus-quest-editor/files/solarus-quest-editor-1.6.5-fix-segfault.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/games-misc/solarus-quest-editor/files/solarus-quest-editor-1.6.5-fix-segfault.patch b/games-misc/solarus-quest-editor/files/solarus-quest-editor-1.6.5-fix-segfault.patch
new file mode 100644
index 000000000000..1e2f1582e2ce
--- /dev/null
+++ b/games-misc/solarus-quest-editor/files/solarus-quest-editor-1.6.5-fix-segfault.patch
@@ -0,0 +1,22 @@
+Solarus quest editor will segfault on startup with -O2
+
+See: https://gitlab.com/solarus-games/solarus-quest-editor/-/commit/921ac6170a08dcfe601c7a11ee9f7c85386a4f3f
+--- a/src/widgets/main_window.cpp
++++ b/src/widgets/main_window.cpp
+@@ -1287,7 +1287,6 @@ void MainWindow::current_editor_changed(int index) {
+
+ Editor* editor = get_current_editor();
+ const bool has_editor = editor != nullptr;
+- ViewSettings& view_settings = editor->get_view_settings();
+
+ // Set up toolbar buttons for this editor.
+ ui.action_cut->setEnabled(has_editor);
+@@ -1343,6 +1342,8 @@ void MainWindow::current_editor_changed(int index) {
+
+ if (has_editor) {
+
++ ViewSettings& view_settings = editor->get_view_settings();
++
+ connect(&view_settings, &ViewSettings::zoom_changed,
+ this, &MainWindow::update_zoom);
+ update_zoom();