[gthumb] Crash when no selection is made in special effects
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] Crash when no selection is made in special effects
- Date: Sun, 16 Feb 2020 18:14:08 +0000 (UTC)
commit 5768f30596693fcd6c1ec49d0030d1c4da26a811
Author: Paolo Bacchilega <paobac src gnome org>
Date: Sat Feb 1 08:53:26 2020 +0100
Crash when no selection is made in special effects
Fixes https://gitlab.gnome.org/GNOME/gthumb/issues/71
extensions/file_tools/gth-file-tool-adjust-contrast.c | 3 ++-
extensions/file_tools/gth-file-tool-effects.c | 3 ++-
extensions/file_tools/gth-file-tool-grayscale.c | 3 ++-
3 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/extensions/file_tools/gth-file-tool-adjust-contrast.c
b/extensions/file_tools/gth-file-tool-adjust-contrast.c
index 62421939..7dae6404 100644
--- a/extensions/file_tools/gth-file-tool-adjust-contrast.c
+++ b/extensions/file_tools/gth-file-tool-adjust-contrast.c
@@ -590,6 +590,7 @@ gth_file_tool_adjust_contrast_destroy_options (GthFileTool *base)
_cairo_clear_surface (&self->priv->destination);
self->priv->method = GTH_FILTER_GRID_NO_FILTER;
self->priv->last_applied_method = GTH_FILTER_GRID_NO_FILTER;
+ self->priv->view_original = TRUE;
}
@@ -653,7 +654,7 @@ gth_file_tool_adjust_contrast_init (GthFileToolAdjustContrast *self)
self->priv->builder = NULL;
self->priv->method = GTH_FILTER_GRID_NO_FILTER;
self->priv->last_applied_method = GTH_FILTER_GRID_NO_FILTER;
- self->priv->view_original = FALSE;
+ self->priv->view_original = TRUE;
gth_file_tool_construct (GTH_FILE_TOOL (self),
"image-adjust-contrast-symbolic",
diff --git a/extensions/file_tools/gth-file-tool-effects.c b/extensions/file_tools/gth-file-tool-effects.c
index 0faeec9a..826c0956 100644
--- a/extensions/file_tools/gth-file-tool-effects.c
+++ b/extensions/file_tools/gth-file-tool-effects.c
@@ -287,6 +287,7 @@ gth_file_tool_effects_destroy_options (GthFileTool *base)
_cairo_clear_surface (&self->priv->destination);
self->priv->method = GTH_FILTER_GRID_NO_FILTER;
self->priv->last_applied_method = GTH_FILTER_GRID_NO_FILTER;
+ self->priv->view_original = TRUE;
}
@@ -351,7 +352,7 @@ gth_file_tool_effects_init (GthFileToolEffects *self)
self->priv->builder = NULL;
self->priv->method = GTH_FILTER_GRID_NO_FILTER;
self->priv->last_applied_method = GTH_FILTER_GRID_NO_FILTER;
- self->priv->view_original = FALSE;
+ self->priv->view_original = TRUE;
gth_file_tool_construct (GTH_FILE_TOOL (self),
"special-effects-symbolic",
diff --git a/extensions/file_tools/gth-file-tool-grayscale.c b/extensions/file_tools/gth-file-tool-grayscale.c
index f621f753..980e7bbe 100644
--- a/extensions/file_tools/gth-file-tool-grayscale.c
+++ b/extensions/file_tools/gth-file-tool-grayscale.c
@@ -426,6 +426,7 @@ gth_file_tool_grayscale_destroy_options (GthFileTool *base)
_cairo_clear_surface (&self->priv->destination);
self->priv->method = GTH_FILTER_GRID_NO_FILTER;
self->priv->last_applied_method = GTH_FILTER_GRID_NO_FILTER;
+ self->priv->view_original = TRUE;
}
@@ -490,7 +491,7 @@ gth_file_tool_grayscale_init (GthFileToolGrayscale *self)
self->priv->builder = NULL;
self->priv->method = GTH_FILTER_GRID_NO_FILTER;
self->priv->last_applied_method = GTH_FILTER_GRID_NO_FILTER;
- self->priv->view_original = FALSE;
+ self->priv->view_original = TRUE;
gth_file_tool_construct (GTH_FILE_TOOL (self),
"image-grayscale-symbolic",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]