Revision: 16311
http://sourceforge.net/p/skim-app/code/16311
Author: hofman
Date: 2026-05-25 09:32:57 +0000 (Mon, 25 May 2026)
Log Message:
-----------
container origin is now at origin
Modified Paths:
--------------
trunk/QuickLook-Skim/GenerateThumbnailForURL.m
trunk/SkimQuickLookThumbnails/SKThumbnailProvider.m
Modified: trunk/QuickLook-Skim/GenerateThumbnailForURL.m
===================================================================
--- trunk/QuickLook-Skim/GenerateThumbnailForURL.m 2026-05-25 09:25:36 UTC
(rev 16310)
+++ trunk/QuickLook-Skim/GenerateThumbnailForURL.m 2026-05-25 09:32:57 UTC
(rev 16311)
@@ -87,7 +87,7 @@
NSTextContainer *tc = [[lm textContainers] objectAtIndex:0];
// we now have a properly flipped graphics context, so force layout and
then draw the text
- NSRect stringRect = NSMakeRect(_horizontalMargin, _verticalMargin,
_paperSize.width - 2 * _horizontalMargin, _paperSize.height - 2 *
_verticalMargin);
+ NSRect stringRect = NSMakeRect(0, 0, _paperSize.width - 2 *
_horizontalMargin, _paperSize.height - 2 * _verticalMargin);
NSRange glyphRange = [lm glyphRangeForBoundingRect:stringRect
inTextContainer:tc];
stringRect = [lm usedRectForTextContainer:tc];
Modified: trunk/SkimQuickLookThumbnails/SKThumbnailProvider.m
===================================================================
--- trunk/SkimQuickLookThumbnails/SKThumbnailProvider.m 2026-05-25 09:25:36 UTC
(rev 16310)
+++ trunk/SkimQuickLookThumbnails/SKThumbnailProvider.m 2026-05-25 09:32:57 UTC
(rev 16311)
@@ -84,7 +84,7 @@
NSTextContainer *tc = [[lm textContainers] objectAtIndex:0];
// we now have a properly flipped graphics context, so force layout and
then draw the text
- NSRect stringRect = NSMakeRect(_horizontalMargin, _verticalMargin,
_paperSize.width - 2 * _horizontalMargin, _paperSize.height - 2 *
_verticalMargin);
+ NSRect stringRect = NSMakeRect(0, 0, _paperSize.width - 2 *
_horizontalMargin, _paperSize.height - 2 * _verticalMargin);
NSRange glyphRange = [lm glyphRangeForBoundingRect:stringRect
inTextContainer:tc];
stringRect = [lm usedRectForTextContainer:tc];
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