[gimp/soc-2013-combined-selection-tool: 192/230] app:changed he	rounded radius into percentage
- From: Ajay Ramanathan <ajayr src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [gimp/soc-2013-combined-selection-tool: 192/230] app:changed he	rounded radius into percentage
- Date: Sat, 21 Sep 2013 03:17:07 +0000 (UTC)
commit 1340ac780360817b8d6cd71a5611e4c32b411930
Author: Ajay Ramanathan <ajay 010293 gmail com>
Date:   Wed Jun 26 19:40:12 2013 +0530
    app:changed he rounded radius into percentage
 app/tools/gimpselectbyshapetool.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/app/tools/gimpselectbyshapetool.c b/app/tools/gimpselectbyshapetool.c
index bd0537a..7c971d3 100644
--- a/app/tools/gimpselectbyshapetool.c
+++ b/app/tools/gimpselectbyshapetool.c
@@ -152,7 +152,8 @@ gimp_select_by_shape_tool_select (GimpRectangleSelectTool *rect_tool,
      case GIMP_SHAPE_ROUNDED_RECT :
       {
        gdouble max    = MIN (w / 2.0, h / 2.0);
-       gdouble radius = MIN (sel_options->corner_radius, max);
+       //gdouble radius = MIN (sel_options->corner_radius, max);
+       gdouble radius = sel_options->corner_radius*max/100;
 
        gimp_channel_select_round_rect (gimp_image_get_mask (image),
                                       x, y, w, h,
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]