Revision: 14441
http://sourceforge.net/p/skim-app/code/14441
Author: hofman
Date: 2024-08-31 16:07:55 +0000 (Sat, 31 Aug 2024)
Log Message:
-----------
show bounds in points in status bar with one digit precision
Modified Paths:
--------------
trunk/SKMainWindowController.m
Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m 2024-08-30 22:07:46 UTC (rev 14440)
+++ trunk/SKMainWindowController.m 2024-08-31 16:07:55 UTC (rev 14441)
@@ -684,7 +684,7 @@
CGFloat factor = useMetric ? CM_PER_POINT : INCH_PER_POINT;
message = [NSString stringWithFormat:@"%.2f %C %.2f @ (%.2f, %.2f)
%@", NSWidth(rect) * factor, MULTIPLICATION_SIGN_CHARACTER, NSHeight(rect) *
factor, NSMinX(rect) * factor, NSMinY(rect) * factor, units];
} else {
- message = [NSString stringWithFormat:@"%ld %C %ld @ (%ld, %ld)
%@", (long)NSWidth(rect), MULTIPLICATION_SIGN_CHARACTER, (long)NSHeight(rect),
(long)NSMinX(rect), (long)NSMinY(rect), NSLocalizedString(@"pt", @"size unit")];
+ message = [NSString stringWithFormat:@"%.1f %C %.1f @ (%.1f, %.1f)
%@", NSWidth(rect), MULTIPLICATION_SIGN_CHARACTER, NSHeight(rect),
NSMinX(rect), NSMinY(rect), NSLocalizedString(@"pt", @"size unit")];
}
} else if (magnification > 0.0001) {
message = [NSString stringWithFormat:@"%.2f %C", magnification,
MULTIPLICATION_SIGN_CHARACTER];
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit