[gimp] Bug 795911 - GIMP crashed while I was undoing a gradient
- From: N/A <ell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] Bug 795911 - GIMP crashed while I was undoing a gradient
- Date: Tue, 8 May 2018 15:42:58 +0000 (UTC)
commit cb045c3e636bdda10536d69591d74baf7f681f38
Author: Ell <ell_se yahoo com>
Date: Tue May 8 11:34:43 2018 -0400
Bug 795911 - GIMP crashed while I was undoing a gradient
In the gradient-tool editor, when responding to an endpoint size-
entry "changed" signal, make sure there is a selected handle, and
bail otherwise. We can receive a "changed" signal without a
selected handle, if the endpoint is deselected while a change to
the size-entry's value is in progress, causing the the tool GUI to
be unmapped, and the changed value to be committed.
app/tools/gimpgradienttool-editor.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/app/tools/gimpgradienttool-editor.c b/app/tools/gimpgradienttool-editor.c
index ab284c9..0c838ea 100644
--- a/app/tools/gimpgradienttool-editor.c
+++ b/app/tools/gimpgradienttool-editor.c
@@ -572,6 +572,9 @@ gimp_gradient_tool_editor_endpoint_se_value_changed (GimpSizeEntry *se,
selection =
gimp_tool_line_get_selection (GIMP_TOOL_LINE (gradient_tool->widget));
+ if (selection == GIMP_TOOL_LINE_HANDLE_NONE)
+ return;
+
x = gimp_size_entry_get_refval (se, 0);
y = gimp_size_entry_get_refval (se, 1);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]