ide: Fixed issue with aux file rename

git-svn-id: svn://ultimatepp.org/upp/trunk@7713 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2014-09-21 16:16:41 +00:00
parent 70292e49d7
commit 69dca3e2f3

View file

@ -703,7 +703,11 @@ void WorkspaceWork::RenameFile()
dlg.text <<= n;
dlg.Open();
dlg.text.SetFocus();
dlg.text.SetSelection(0, int(GetFileExtPos(n) - ~n));
int l = int(GetFileNamePos(n) - ~n);
int h = int(GetFileExtPos(n) - ~n);
if(l >= h)
l = 0;
dlg.text.SetSelection(l, h);
if(dlg.Run() != IDOK)
return;
n = ~dlg.text;