Merge pull request #328 from vkbo/replace_bugfix
Fixed bug in search replace
This commit is contained in:
+1
-1
@@ -1237,10 +1237,10 @@ class GuiDocEditor(QTextEdit):
|
|||||||
self._beginSearch()
|
self._beginSearch()
|
||||||
return
|
return
|
||||||
|
|
||||||
|
theCursor = self.textCursor()
|
||||||
if not theCursor.hasSelection():
|
if not theCursor.hasSelection():
|
||||||
return
|
return
|
||||||
|
|
||||||
theCursor = self.textCursor()
|
|
||||||
searchFor = self.docSearch.getSearchText()
|
searchFor = self.docSearch.getSearchText()
|
||||||
replWith = self.docSearch.getReplaceText()
|
replWith = self.docSearch.getReplaceText()
|
||||||
selText = theCursor.selectedText()
|
selText = theCursor.selectedText()
|
||||||
|
|||||||
Reference in New Issue
Block a user