Revision: 7233
http://skim-app.svn.sourceforge.net/skim-app/?rev=7233&view=rev
Author: hofman
Date: 2011-05-15 12:31:47 +0000 (Sun, 15 May 2011)
Log Message:
-----------
shadowed variable fix
Modified Paths:
--------------
trunk/PDFDisplayView_SKExtensions.m
Modified: trunk/PDFDisplayView_SKExtensions.m
===================================================================
--- trunk/PDFDisplayView_SKExtensions.m 2011-05-15 11:18:26 UTC (rev 7232)
+++ trunk/PDFDisplayView_SKExtensions.m 2011-05-15 12:31:47 UTC (rev 7233)
@@ -127,14 +127,14 @@
if (fabs(scale - 1.0) > 0.0) {
NSMutableAttributedString *mutableAttrString =
[[attributedString mutableCopy] autorelease];
NSUInteger i = 0, l = [mutableAttrString length];
- NSRange range;
+ NSRange r;
while (i < l) {
- NSFont *font = [mutableAttrString
attribute:NSFontAttributeName atIndex:i effectiveRange:&range];
+ NSFont *font = [mutableAttrString
attribute:NSFontAttributeName atIndex:i effectiveRange:&r];
if (font) {
font = [[NSFontManager sharedFontManager]
convertFont:font toSize:round(scale * [font pointSize])];
- [mutableAttrString addAttribute:NSFontAttributeName
value:font range:range];
+ [mutableAttrString addAttribute:NSFontAttributeName
value:font range:r];
}
- i = NSMaxRange(range);
+ i = NSMaxRange(r);
}
[mutableAttrString fixFontAttributeInRange:NSMakeRange(0, l)];
attributedString = mutableAttrString;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit