Revision: 3886
http://skim-app.svn.sourceforge.net/skim-app/?rev=3886&view=rev
Author: hofman
Date: 2008-05-17 06:18:23 -0700 (Sat, 17 May 2008)
Log Message:
-----------
Send selection change notification when selection is removed by changing tool
mode.
Modified Paths:
--------------
trunk/SKPDFView.m
Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m 2008-05-16 23:23:26 UTC (rev 3885)
+++ trunk/SKPDFView.m 2008-05-17 13:18:23 UTC (rev 3886)
@@ -487,9 +487,8 @@
if ([self currentSelection])
[self setCurrentSelection:nil];
} else if (toolMode == SKSelectToolMode && NSEqualRects(selectionRect,
NSZeroRect) == NO) {
- selectionRect = NSZeroRect;
- selectionPageIndex = NSNotFound;
- [self setNeedsDisplay:YES];
+ [self setCurrentSelectionRect:NSZeroRect];
+ [[NSNotificationCenter defaultCenter]
postNotificationName:SKPDFViewSelectionChangedNotification object:self];
}
toolMode = newToolMode;
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