Revision: 3925
          http://skim-app.svn.sourceforge.net/skim-app/?rev=3925&view=rev
Author:   hofman
Date:     2008-05-27 12:00:32 -0700 (Tue, 27 May 2008)

Log Message:
-----------
Use full selection text as contents of new markup when extending a selected 
markup using the current selection.

Modified Paths:
--------------
    trunk/SKPDFView.m

Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m   2008-05-27 17:16:27 UTC (rev 3924)
+++ trunk/SKPDFView.m   2008-05-27 19:00:32 UTC (rev 3925)
@@ -1829,6 +1829,7 @@
             if ([[activeAnnotation type] isEqualToString:SKHighlightString] && 
[[activeAnnotation page] isEqual:page]) {
                 [sel addSelection:[(SKPDFAnnotationMarkup *)activeAnnotation 
selection]];
                 [self removeActiveAnnotation:nil];
+                text = [[sel string] 
stringByCollapsingWhitespaceAndNewlinesAndRemovingSurroundingWhitespaceAndNewlines];
             }
             newAnnotation = [[SKPDFAnnotationMarkup alloc] 
initWithSelection:sel markupType:kPDFMarkupTypeHighlight];
             break;
@@ -1836,6 +1837,7 @@
             if ([[activeAnnotation type] isEqualToString:SKUnderlineString] && 
[[activeAnnotation page] isEqual:page]) {
                 [sel addSelection:[(SKPDFAnnotationMarkup *)activeAnnotation 
selection]];
                 [self removeActiveAnnotation:nil];
+                text = [[sel string] 
stringByCollapsingWhitespaceAndNewlinesAndRemovingSurroundingWhitespaceAndNewlines];
             }
             newAnnotation = [[SKPDFAnnotationMarkup alloc] 
initWithSelection:sel markupType:kPDFMarkupTypeUnderline];
             break;
@@ -1843,6 +1845,7 @@
             if ([[activeAnnotation type] isEqualToString:SKStrikeOutString] && 
[[activeAnnotation page] isEqual:page]) {
                 [sel addSelection:[(SKPDFAnnotationMarkup *)activeAnnotation 
selection]];
                 [self removeActiveAnnotation:nil];
+                text = [[sel string] 
stringByCollapsingWhitespaceAndNewlinesAndRemovingSurroundingWhitespaceAndNewlines];
             }
             newAnnotation = [[SKPDFAnnotationMarkup alloc] 
initWithSelection:sel markupType:kPDFMarkupTypeStrikeOut];
             break;


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to