summaryrefslogtreecommitdiff
path: root/academic/gwyddion/gwyddion-2.24-maskedit-drawing-crash.patch
diff options
context:
space:
mode:
Diffstat (limited to 'academic/gwyddion/gwyddion-2.24-maskedit-drawing-crash.patch')
-rw-r--r--academic/gwyddion/gwyddion-2.24-maskedit-drawing-crash.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/academic/gwyddion/gwyddion-2.24-maskedit-drawing-crash.patch b/academic/gwyddion/gwyddion-2.24-maskedit-drawing-crash.patch
new file mode 100644
index 0000000000..49654813cc
--- /dev/null
+++ b/academic/gwyddion/gwyddion-2.24-maskedit-drawing-crash.patch
@@ -0,0 +1,22 @@
+Index: modules/tools/maskedit.c
+===================================================================
+--- modules/tools/maskedit.c (revision 12328)
++++ modules/tools/maskedit.c (revision 12329)
+@@ -159,7 +159,7 @@
+ N_("Mask editor tool, allows to interactively add or remove parts "
+ "of mask."),
+ "Yeti <yeti@gwyddion.net>",
+- "3.1",
++ "3.2",
+ "David Nečas (Yeti) & Petr Klapetek",
+ "2004",
+ };
+@@ -1524,8 +1524,6 @@
+ if (tool->in_setup || tool->args.style != MASK_EDIT_STYLE_DRAWING)
+ return;
+
+- g_assert_not_reached();
+-
+ if (tool->args.tool == MASK_TOOL_PAINT_DRAW)
+ fillvalue = 1.0;
+ else if (tool->args.tool == MASK_TOOL_PAINT_ERASE)