[gimp/metadata-browser] transformtool: We show corrective preview for selections and paths, so why not drawables
- From: Roman Joost <romanofski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/metadata-browser] transformtool: We show corrective preview for selections and paths, so why not drawables
- Date: Thu, 13 Sep 2012 00:35:46 +0000 (UTC)
commit 57c9d11ba00a1bb091ee02713f587300b54041c2
Author: Mikael Magnusson <mikachu src gnome org>
Date: Wed Aug 15 01:40:20 2012 +0200
transformtool: We show corrective preview for selections and paths, so why not drawables
app/tools/gimptransformoptions.c | 3 +--
app/tools/gimptransformtool.c | 7 ++++++-
2 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/app/tools/gimptransformoptions.c b/app/tools/gimptransformoptions.c
index fdb71c8..f646777 100644
--- a/app/tools/gimptransformoptions.c
+++ b/app/tools/gimptransformoptions.c
@@ -568,8 +568,7 @@ gimp_transform_options_show_preview (GimpTransformOptions *options)
g_return_val_if_fail (GIMP_IS_TRANSFORM_OPTIONS (options), FALSE);
return (options->show_preview &&
- options->type == GIMP_TRANSFORM_TYPE_LAYER &&
- options->direction == GIMP_TRANSFORM_FORWARD);
+ options->type == GIMP_TRANSFORM_TYPE_LAYER);
}
diff --git a/app/tools/gimptransformtool.c b/app/tools/gimptransformtool.c
index 38b9bd9..1230094 100644
--- a/app/tools/gimptransformtool.c
+++ b/app/tools/gimptransformtool.c
@@ -782,9 +782,14 @@ gimp_transform_tool_draw (GimpDrawTool *draw_tool)
{
if (gimp_transform_options_show_preview (options))
{
+ GimpMatrix3 matrix = tr_tool->transform;
+
+ if (options->direction == GIMP_TRANSFORM_BACKWARD)
+ gimp_matrix3_invert (&matrix);
+
gimp_draw_tool_add_transform_preview (draw_tool,
tool->drawable,
- &tr_tool->transform,
+ &matrix,
tr_tool->x1,
tr_tool->y1,
tr_tool->x2,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]