mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
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:
parent
70292e49d7
commit
69dca3e2f3
1 changed files with 5 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue