Revision: 7202
          http://skim-app.svn.sourceforge.net/skim-app/?rev=7202&view=rev
Author:   hofman
Date:     2011-04-05 12:49:15 +0000 (Tue, 05 Apr 2011)

Log Message:
-----------
show only one size in info when crop box and media box are the same

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

Modified: trunk/SKInfoWindowController.m
===================================================================
--- trunk/SKInfoWindowController.m      2011-04-05 11:11:36 UTC (rev 7201)
+++ trunk/SKInfoWindowController.m      2011-04-05 12:49:15 UTC (rev 7202)
@@ -248,7 +248,10 @@
     BOOL useMetric = [[[NSLocale currentLocale] 
objectForKey:NSLocaleUsesMetricSystem] boolValue];
     NSString *units = useMetric ? @"cm" : @"in";
     CGFloat factor = useMetric ? 0.035277778 : 0.013888889;
-    return [NSString stringWithFormat:@"%.1f x %.1f %@  (%.1f x %.1f %@)", 
size.width * factor, size.height * factor, units, altSize.width * factor, 
altSize.height * factor, units];
+    if (NSEqualSizes(size, altSize))
+        return [NSString stringWithFormat:@"%.1f x %.1f %@", size.width * 
factor, size.height * factor, units];
+    else
+        return [NSString stringWithFormat:@"%.1f x %.1f %@  (%.1f x %.1f %@)", 
size.width * factor, size.height * factor, units, altSize.width * factor, 
altSize.height * factor, units];
 }
 
 - (NSDictionary *)infoForDocument:(NSDocument *)doc {


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

------------------------------------------------------------------------------
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to