[gimp/soc-2013-combined-selection-tool: 198/230] app:Single Row selection tool
- From: Ajay Ramanathan <ajayr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/soc-2013-combined-selection-tool: 198/230] app:Single Row selection tool
- Date: Sat, 21 Sep 2013 03:17:37 +0000 (UTC)
commit a41b3f8ecb52116206fb106d6786181ca414ae60
Author: Ajay Ramanathan <ajay 010293 gmail com>
Date: Tue Jul 9 06:50:44 2013 +0530
app:Single Row selection tool
app/tools/gimpselectbyshapetool.c | 17 ++++++++---------
1 files changed, 8 insertions(+), 9 deletions(-)
---
diff --git a/app/tools/gimpselectbyshapetool.c b/app/tools/gimpselectbyshapetool.c
index 20bca20..e772612 100644
--- a/app/tools/gimpselectbyshapetool.c
+++ b/app/tools/gimpselectbyshapetool.c
@@ -172,13 +172,14 @@ gimp_select_by_shape_tool_select (GimpRectangleSelectTool *rect_tool,
case GIMP_SHAPE_SINGLE_ROW :
{
- gdouble w1 = gimp_image_width (channel);
- gdouble h1 = gimp_image_height (channel);
+ gdouble w1 = gimp_image_get_width (operation);
+ gdouble h1 = gimp_image_get_height (operation);
+
switch(sel_options->line_orientation)
{
case GIMP_ORIENTATION_HORIZONTAL :
gimp_channel_select_rectangle (channel,
- 0, 0, w1, h1,
+ x, 0, w1, 1,
operation,
options->feather,
options->feather_radius,
@@ -187,10 +188,9 @@ gimp_select_by_shape_tool_select (GimpRectangleSelectTool *rect_tool,
break;
case GIMP_ORIENTATION_VERTICAL :
- gimp_channel_select_ellipse (channel,
- 0, 0, w1, h1,
+ gimp_channel_select_rectangle (channel,
+ 0, y, 1, h1,
operation,
- options->antialias,
options->feather,
options->feather_radius,
options->feather_radius,
@@ -198,10 +198,9 @@ gimp_select_by_shape_tool_select (GimpRectangleSelectTool *rect_tool,
break;
case GIMP_ORIENTATION_UNKNOWN :
- gimp_channel_select_ellipse (channel,
- 0, 0, w1, h1,
+ gimp_channel_select_rectangle (channel,
+ x, y, 1, 1,
operation,
- options->antialias,
options->feather,
options->feather_radius,
options->feather_radius,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]