[gimp] fix some copy&paste errors
- From: Simon Budig <simon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] fix some copy&paste errors
- Date: Fri, 15 Aug 2014 23:00:57 +0000 (UTC)
commit 40c06ab685f1c978b79610be7c8653983ce7a002
Author: Simon Budig <simon budig de>
Date: Fri Aug 15 23:05:05 2014 +0200
fix some copy&paste errors
Spotted by Andrey Karpov using static code analysis:
http://www.viva64.com/en/b/0273/
app/core/gimpitem-preview.c | 4 ++--
app/text/gimptext.c | 2 +-
app/tools/gimpdrawtool.c | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/app/core/gimpitem-preview.c b/app/core/gimpitem-preview.c
index cc2b48e..ced3b74 100644
--- a/app/core/gimpitem-preview.c
+++ b/app/core/gimpitem-preview.c
@@ -122,8 +122,8 @@ gimp_item_get_popup_size (GimpViewable *viewable,
if (scaling_up)
{
- *popup_width = gimp_item_get_width (item);
- *popup_width = gimp_item_get_height (item);
+ *popup_width = gimp_item_get_width (item);
+ *popup_height = gimp_item_get_height (item);
}
return TRUE;
diff --git a/app/text/gimptext.c b/app/text/gimptext.c
index 6649172..019799e 100644
--- a/app/text/gimptext.c
+++ b/app/text/gimptext.c
@@ -566,5 +566,5 @@ gimp_text_get_transformation (GimpText *text,
matrix->coeff[2][0] = 0.0;
matrix->coeff[2][1] = 0.0;
- matrix->coeff[2][1] = 1.0;
+ matrix->coeff[2][2] = 1.0;
}
diff --git a/app/tools/gimpdrawtool.c b/app/tools/gimpdrawtool.c
index 3d94495..c1b6bab 100644
--- a/app/tools/gimpdrawtool.c
+++ b/app/tools/gimpdrawtool.c
@@ -1210,7 +1210,7 @@ gimp_draw_tool_on_vectors_curve (GimpDrawTool *draw_tool,
if (ret_coords) *ret_coords = *coord;
if (ret_pos) *ret_pos = -1.0;
if (ret_segment_start) *ret_segment_start = NULL;
- if (ret_segment_start) *ret_segment_end = NULL;
+ if (ret_segment_end) *ret_segment_end = NULL;
if (ret_stroke) *ret_stroke = NULL;
min_dist = -1.0;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]