Author: dpage
Date: 2006-01-16 15:14:16 +0000 (Mon, 16 Jan 2006)
New Revision: 4898
Modified:
trunk/pgadmin3/src/ctl/ctlSQLBox.cpp
Log:
Fix Replace All in ctlSQLBox, per Luc Mousseau
Modified: trunk/pgadmin3/src/ctl/ctlSQLBox.cpp
===================================================================
--- trunk/pgadmin3/src/ctl/ctlSQLBox.cpp 2006-01-13 22:02:08 UTC (rev 4897)
+++ trunk/pgadmin3/src/ctl/ctlSQLBox.cpp 2006-01-16 15:14:16 UTC (rev 4898)
@@ -505,6 +505,7 @@
SetSelectionStart(pos);
SetSelectionEnd(pos + event.GetFindString().Length());
ReplaceSelection(event.GetReplaceString().c_str());
+ pos = pos + event.GetReplaceString().Length();
pos = FindText(pos, endPos, event.GetFindString().c_str(), flags);
}