Revision: 14449
http://sourceforge.net/p/skim-app/code/14449
Author: hofman
Date: 2024-09-01 22:36:51 +0000 (Sun, 01 Sep 2024)
Log Message:
-----------
Display integral rect in status when the rect is not fractional
Modified Paths:
--------------
trunk/SKMainWindowController.m
Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m 2024-09-01 22:26:53 UTC (rev 14448)
+++ trunk/SKMainWindowController.m 2024-09-01 22:36:51 UTC (rev 14449)
@@ -684,7 +684,10 @@
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:@"%.1f %C %.1f @ (%.1f, %.1f)
%@", NSWidth(rect), MULTIPLICATION_SIGN_CHARACTER, NSHeight(rect),
NSMinX(rect), NSMinY(rect), NSLocalizedString(@"pt", @"size unit")];
+ if (floor(NSMinX(rect)) >= NSMinX(rect) && floor(NSMinY(rect)) >=
NSMinY(rect) && floor(NSWidth(rect)) >= NSWidth(rect) && floor(NSHeight(rect))
>= NSHeight(rect))
+ message = [NSString stringWithFormat:@"%.0f %C %.0f @ (%.0f,
%.0f) %@", NSWidth(rect), MULTIPLICATION_SIGN_CHARACTER, NSHeight(rect),
NSMinX(rect), NSMinY(rect), NSLocalizedString(@"pt", @"size unit")];
+ else
+ 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