Revision: 15620
http://sourceforge.net/p/skim-app/code/15620
Author: hofman
Date: 2025-07-08 15:03:04 +0000 (Tue, 08 Jul 2025)
Log Message:
-----------
get bounds first for any type
Modified Paths:
--------------
trunk/SKPDFView.m
Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m 2025-07-08 14:34:19 UTC (rev 15619)
+++ trunk/SKPDFView.m 2025-07-08 15:03:04 UTC (rev 15620)
@@ -4052,18 +4052,17 @@
if (shouldAddAnnotation) {
if (temporaryToolMode >= SKToolModeFreeText)
noteType = NOTE_TYPE_FROM_TEMP_TOOL_MODE(temporaryToolMode);
+ originalBounds =
SKRectFromCenterAndSquareSize(SKIntegralPoint(initialPoint), 0.0);
if (noteType == SKNoteTypeAnchored) {
- [self addAnnotationWithType:SKNoteTypeAnchored selection:nil
page:page bounds:SKRectFromCenterAndSquareSize(SKIntegralPoint(initialPoint),
0.0)];
+ [self addAnnotationWithType:SKNoteTypeAnchored selection:nil
page:page bounds:originalBounds];
+ resizeHandle = 0;
originalBounds = [[self currentAnnotation] bounds];
+ } else if (noteType == SKNoteTypeLine) {
+ isLine = YES;
+ resizeHandle = SKMaxXEdgeMask;
+ originalStartPoint = originalEndPoint = originalBounds.origin;
} else {
- originalBounds =
SKRectFromCenterAndSquareSize(SKIntegralPoint(initialPoint), 0.0);
- if (noteType == SKNoteTypeLine) {
- isLine = YES;
- resizeHandle = SKMaxXEdgeMask;
- originalStartPoint = originalEndPoint = originalBounds.origin;
- } else {
- resizeHandle = SKMaxXEdgeMask | SKMinYEdgeMask;
- }
+ resizeHandle = SKMaxXEdgeMask | SKMinYEdgeMask;
}
} else if (isLine) {
originalStartPoint = SKIntegralPoint(SKAddPoints([currentAnnotation
startPoint], originalBounds.origin));
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