mirror of https://github.com/odrling/Aegisub
Fix bug in BaseGrid::GetSelection that resulted in row 0 always being selected
Originally committed to SVN as r5653.
This commit is contained in:
parent
bb72ec980e
commit
5a49abb2eb
|
@ -345,7 +345,8 @@ int BaseGrid::GetFirstSelRow() const {
|
||||||
}
|
}
|
||||||
|
|
||||||
wxArrayInt BaseGrid::GetSelection() const {
|
wxArrayInt BaseGrid::GetSelection() const {
|
||||||
wxArrayInt res(selection.size());
|
wxArrayInt res;
|
||||||
|
res.reserve(selection.size());
|
||||||
transform(selection.begin(), selection.end(), std::back_inserter(res),
|
transform(selection.begin(), selection.end(), std::back_inserter(res),
|
||||||
bind(&BaseGrid::GetDialogueIndex, this, std::tr1::placeholders::_1));
|
bind(&BaseGrid::GetDialogueIndex, this, std::tr1::placeholders::_1));
|
||||||
std::sort(res.begin(), res.end());
|
std::sort(res.begin(), res.end());
|
||||||
|
|
Loading…
Reference in New Issue