Skip to content
Snippets Groups Projects
Commit 5204188a authored by Johannes Mey's avatar Johannes Mey
Browse files

include first selection

parent 30742dc6
No related branches found
No related tags found
1 merge request!1festival updatesfestival updatesfestival updatesfestival updatesfestival
...@@ -46,7 +46,7 @@ aspect Tracing { ...@@ -46,7 +46,7 @@ aspect Tracing {
Selection s = (Selection) childNode; Selection s = (Selection) childNode;
RobotWorld w = (RobotWorld) parentNode; RobotWorld w = (RobotWorld) parentNode;
int LAST_X_SELECTIONS = 5; int LAST_X_SELECTIONS = 5;
for (int i = w.getNumSelection() - 1; i > 0 && i > w.getNumSelection() - 1 - LAST_X_SELECTIONS; i--) { for (int i = w.getNumSelection() - 1; i >= 0 && i > w.getNumSelection() - 1 - LAST_X_SELECTIONS; i--) {
if (w.getSelection(i) == childNode) { if (w.getSelection(i) == childNode) {
return true; return true;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment