Bugfix: put the tech selector to the right position in the toolbar.

This commit is contained in:
Matthias Koefferlein 2017-10-24 23:49:16 +02:00
parent 6b65080738
commit 67b4fb33fc
1 changed files with 71 additions and 67 deletions

View File

@ -1177,20 +1177,22 @@ AbstractMenu::find_item (const std::string &p)
return path_type ();
}
} else if (extr.test ("begin")) {
} else {
std::string n;
extr.read (n, ".+>(");
if (n == "begin") {
iter = parent->children.begin ();
} else if (extr.test ("end")) {
} else if (n == "end") {
iter = parent->children.end ();
} else {
std::string n, nn;
extr.read (n, ".+>(");
std::string nn;
if (extr.test (">")) {
extr.read (nn, ".+>(");
}
@ -1267,6 +1269,8 @@ AbstractMenu::find_item (const std::string &p)
}
}
path.push_back (std::make_pair (parent, iter));
extr.test (".");