[gimp/soc-2013-combined-selection-tool] app:changed he rounded radius into percentage



commit 56cf78b1f1d1aeae6b8837a44dcf7243dd98518d
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]