diff --git a/glass/src/lib/native/cpp/other/Plot.cpp b/glass/src/lib/native/cpp/other/Plot.cpp index caf9089868..5f4dd6eebb 100644 --- a/glass/src/lib/native/cpp/other/Plot.cpp +++ b/glass/src/lib/native/cpp/other/Plot.cpp @@ -991,7 +991,7 @@ void PlotProvider::DisplayMenu() { for (size_t i = 0; i <= numWindows; ++i) { std::snprintf(id, sizeof(id), "Plot <%d>", static_cast(i)); bool match = false; - for (size_t j = i; j < numWindows; ++j) { + for (size_t j = 0; j < numWindows; ++j) { if (m_windows[j]->GetId() == id) { match = true; break;