Fixed code in the search and replace widget that can possibly through an exception. 5_3_x

Sat, 01 Jun 2013 11:21:08 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 01 Jun 2013 11:21:08 +0200
branch
5_3_x
changeset 2688
78c21583101d
parent 2687
33a848c5e46f
child 2691
0499c802883f

Fixed code in the search and replace widget that can possibly through an exception.

QScintilla/SearchReplaceWidget.py file | annotate | diff | comparison | revisions
--- a/QScintilla/SearchReplaceWidget.py	Fri May 31 16:55:50 2013 +0200
+++ b/QScintilla/SearchReplaceWidget.py	Sat Jun 01 11:21:08 2013 +0200
@@ -448,7 +448,7 @@
         
         @param editor reference to the editor (Editor)
         """
-        if not self.__finding:
+        if not self.__finding and isinstance(editor, Editor):
             if editor.hasSelectedText() and not editor.selectionIsRectangle():
                 line1, index1, line2, index2 = editor.getSelection()
                 if line1 != line2:

eric ide

mercurial