Revision: 7561
          http://skim-app.svn.sourceforge.net/skim-app/?rev=7561&view=rev
Author:   hofman
Date:     2011-12-05 10:46:14 +0000 (Mon, 05 Dec 2011)
Log Message:
-----------
avoid division

Modified Paths:
--------------
    trunk/SKLevelIndicatorCell.m

Modified: trunk/SKLevelIndicatorCell.m
===================================================================
--- trunk/SKLevelIndicatorCell.m        2011-12-04 23:57:43 UTC (rev 7560)
+++ trunk/SKLevelIndicatorCell.m        2011-12-05 10:46:14 UTC (rev 7561)
@@ -42,7 +42,7 @@
 @implementation SKLevelIndicatorCell
 
 - (void)drawWithFrame:(NSRect)cellFrame inView:(NSView *)controlView {
-    BOOL drawDiscreteContinuous = ([self levelIndicatorStyle] == 
NSDiscreteCapacityLevelIndicatorStyle) && ((NSWidth(cellFrame) + 1.0) / [self 
maxValue] < 3.0);
+    BOOL drawDiscreteContinuous = ([self levelIndicatorStyle] == 
NSDiscreteCapacityLevelIndicatorStyle) && (NSWidth(cellFrame) + 1.0 < 3.0 * 
[self maxValue]);
     if (drawDiscreteContinuous)
         [self setLevelIndicatorStyle:NSContinuousCapacityLevelIndicatorStyle];
     [NSGraphicsContext saveGraphicsState];

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Skim-app-commit mailing list
Skim-app-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to