HexEdit/HexEditSearchReplaceWidget.py

changeset 4687
f1d921533cc5
parent 4662
33e6bd4b1721
child 5389
9b1c800daff3
diff -r 5f8a5c568230 -r f1d921533cc5 HexEdit/HexEditSearchReplaceWidget.py
--- a/HexEdit/HexEditSearchReplaceWidget.py	Sat Jan 23 16:21:23 2016 +0100
+++ b/HexEdit/HexEditSearchReplaceWidget.py	Sat Jan 23 16:59:18 2016 +0100
@@ -491,7 +491,7 @@
         @return converted text
         @rtype str
         """
-        if oldFormat and newFormat:
+        if txt and oldFormat and newFormat and oldFormat != newFormat:
             # step 1: convert the text to a byte array using the old format
             byteArray = self.__text2bytearray(txt, oldFormat)
             

eric ide

mercurial