Revision: 2543
http://skim-app.svn.sourceforge.net/skim-app/?rev=2543&view=rev
Author: hofman
Date: 2007-07-22 17:23:53 -0700 (Sun, 22 Jul 2007)
Log Message:
-----------
We don't show the progress sheet when cropping to the selection, so don't end
it.
Modified Paths:
--------------
trunk/SKMainWindowController.m
Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m 2007-07-22 12:58:37 UTC (rev 2542)
+++ trunk/SKMainWindowController.m 2007-07-23 00:23:53 UTC (rev 2543)
@@ -1413,7 +1413,9 @@
- (IBAction)cropAll:(id)sender {
NSRect rect[2] = {NSIntegralRect([pdfView currentSelectionRect]),
NSZeroRect};
NSArray *rectArray;
- if (NSIsEmptyRect(rect[0])) {
+ BOOL emptySelection = NSIsEmptyRect(rect[0]);
+
+ if (emptySelection) {
if (progressSheet == nil) {
if ([NSBundle loadNibNamed:@"ProgressSheet" owner:self]) {
[progressBar setUsesThreadedAnimation:YES];
@@ -1459,8 +1461,10 @@
[self cropPagesToRects:rectArray];
[pdfView setCurrentSelectionRect:NSZeroRect];
- [NSApp endSheet:progressSheet];
- [progressSheet orderOut:self];
+ if (emptySelection) {
+ [NSApp endSheet:progressSheet];
+ [progressSheet orderOut:self];
+ }
}
- (IBAction)autoCropAll:(id)sender {
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: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit