Revision: 7595
          http://skim-app.svn.sourceforge.net/skim-app/?rev=7595&view=rev
Author:   hofman
Date:     2011-12-22 13:59:18 +0000 (Thu, 22 Dec 2011)
Log Message:
-----------
don't restore selection because the text will be different anyway so the 
selection is meaningless

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

Modified: trunk/SKPresentationOptionsSheetController.m
===================================================================
--- trunk/SKPresentationOptionsSheetController.m        2011-12-22 13:54:29 UTC 
(rev 7594)
+++ trunk/SKPresentationOptionsSheetController.m        2011-12-22 13:59:18 UTC 
(rev 7595)
@@ -268,20 +268,16 @@
         CGFloat extraWidth;
         id firstResponder = [window firstResponder];
         NSTextView *editor = nil;
-        NSRange selection;
         
         if ([firstResponder isKindOfClass:[NSTextView class]]) {
             editor = firstResponder;
-            selection = [editor selectedRange];
             if ([editor isFieldEditor])
                 firstResponder = [firstResponder delegate];
         }
         
         if ([objectController commitEditing] &&
-            editor && [window firstResponder] != editor && 
-            [window makeFirstResponder:firstResponder] && 
-            [[editor string] length] >= NSMaxRange(selection))
-            [editor setSelectedRange:selection];
+            editor && [window firstResponder] != editor)
+            [window makeFirstResponder:firstResponder]; 
         
         [objectController unbind:CONTENTOBJECT_BINDINGNAME];
         if (separate) {

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


------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
Skim-app-commit mailing list
Skim-app-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to