From 1ed1859c618ba42e8af07fa65c6e33595bf2158a Mon Sep 17 00:00:00 2001 From: Matt Jolly Date: Sat, 17 Sep 2022 09:04:42 +1000 Subject: games-misc/solarus-quest-editor: new package, add 1.6.5, 9999 Signed-off-by: Matt Jolly Signed-off-by: Sam James --- .../solarus-quest-editor-1.6.5-fix-segfault.patch | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 games-misc/solarus-quest-editor/files/solarus-quest-editor-1.6.5-fix-segfault.patch (limited to 'games-misc/solarus-quest-editor/files') 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(); -- cgit v1.2.3-65-gdbad