From 1cf89f046cf5eb797b1ab4b13f7c879dac102340 Mon Sep 17 00:00:00 2001 From: Bradley Austin Davis Date: Wed, 16 Mar 2016 19:07:48 -0700 Subject: [PATCH] Fix off by one error --- interface/src/Application.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interface/src/Application.cpp b/interface/src/Application.cpp index 8059ffbcc6..c9ee4efbdc 100644 --- a/interface/src/Application.cpp +++ b/interface/src/Application.cpp @@ -1910,7 +1910,7 @@ void Application::keyPressEvent(QKeyEvent* event) { if (isMeta || isOption) { unsigned int index = static_cast(event->key() - Qt::Key_1); auto displayPlugins = PluginManager::getInstance()->getDisplayPlugins(); - if (index <= displayPlugins.size()) { + if (index < displayPlugins.size()) { auto targetPlugin = displayPlugins.at(index); QString targetName = targetPlugin->getName(); auto menu = Menu::getInstance();