[Gimp-developer] PATCH - tiny bug in the rect tool

2006-02-06 Thread Dennis Bjorklund
This is a patch for a tiny little bug in the the aspect calculation of the
rectangle tool (division by zero).

When I fixed the above I also noticed that the center point of the 
rectangle was calculated using integer division even though the center 
coordinates are gdoubles and thus can store the real center. So I 
changed the division by 2 into division by 2.0.

ps. real as in both correct and non-integer!

-- 
/Dennis Björklund
Index: app/tools/gimprectangletool.c
===
RCS file: /cvs/gnome/gimp/app/tools/gimprectangletool.c,v
retrieving revision 1.30
diff -u -r1.30 gimprectangletool.c
--- app/tools/gimprectangletool.c   4 Feb 2006 05:37:20 -   1.30
+++ app/tools/gimprectangletool.c   6 Feb 2006 19:53:31 -
@@ -2548,13 +2548,13 @@
   width  = x2 - x1;
   height = y2 - y1;
 
-  if (width  0.01)
+  if (height  0.01)
 aspect = width / height;
   else
 aspect = 0;
 
-  center_x = (x1 + x2) / 2;
-  center_y = (y1 + y2) / 2;
+  center_x = (x1 + x2) / 2.0;
+  center_y = (y1 + y2) / 2.0;
 
   g_signal_handlers_block_by_func (entry,
rectangle_dimensions_changed,
___
Gimp-developer mailing list
Gimp-developer@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer


[Gimp-developer] Travel costs requests - last call

2006-02-06 Thread David Neary


Hi all,

We're getting pretty close to the conference now (just over a month 
away), and I'll probably not have much time from the middle of February 
right up until the conference to take care of on-site things like 
t-shirts and posters, and I'll have no time for travel expenses. So 
anyone who would like to go, and needs their ticket paid for, should 
speak now, or forever hold their peace. I'll be asking that refunds be 
sent to people who have sent me some kind of information on how much 
they paid, if they sent their bank details, this week.


So please, if you want to go, and need a hand with travel costs, contact 
me by Friday, because afterwards I won't have the time to take care of you.


Cheers,
Dave.

--
Dave Neary
[EMAIL PROTECTED]
Lyon, France
___
Gimp-developer mailing list
Gimp-developer@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer