Revision: 5617
http://skim-app.svn.sourceforge.net/skim-app/?rev=5617&view=rev
Author: hofman
Date: 2009-09-01 14:46:28 +0000 (Tue, 01 Sep 2009)
Log Message:
-----------
fix validation of new note menu items
Modified Paths:
--------------
trunk/SKMainWindowController_UI.m
Modified: trunk/SKMainWindowController_UI.m
===================================================================
--- trunk/SKMainWindowController_UI.m 2009-09-01 09:20:49 UTC (rev 5616)
+++ trunk/SKMainWindowController_UI.m 2009-09-01 14:46:28 UTC (rev 5617)
@@ -1291,7 +1291,7 @@
SEL action = [menuItem action];
if (action == @selector(createNewNote:)) {
BOOL isMarkup = [menuItem tag] == SKHighlightNote || [menuItem tag] ==
SKUnderlineNote || [menuItem tag] == SKStrikeOutNote;
- return [self isPresentation] == NO && ([pdfView toolMode] ==
SKTextToolMode || [pdfView toolMode] == SKNoteToolMode) && [pdfView hideNotes]
&& (isMarkup == NO || [[[pdfView currentSelection] string] length]) == NO;
+ return [self isPresentation] == NO && ([pdfView toolMode] ==
SKTextToolMode || [pdfView toolMode] == SKNoteToolMode) && [pdfView hideNotes]
== NO && (isMarkup == NO || [[[pdfView currentSelection] string] length]);
} else if (action == @selector(createNewTextNote:)) {
[menuItem setState:[textNoteButton tag] == [menuItem tag] ? NSOnState
: NSOffState];
return [self isPresentation] == NO && ([pdfView toolMode] ==
SKTextToolMode || [pdfView toolMode] == SKNoteToolMode) && [pdfView hideNotes]
== NO;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit