diff --git a/src/common/QskAspect.cpp b/src/common/QskAspect.cpp index 1614bba8..a45febbb 100644 --- a/src/common/QskAspect.cpp +++ b/src/common/QskAspect.cpp @@ -102,7 +102,7 @@ QByteArray QskAspect::subControlName( Subcontrol subControl ) const auto& names = qskAspectRegistry->subControlNames; const int index = subControl; - if ( index > 0 && index < names.size() ) + if ( index > 0 && index <= names.size() ) return names[ index - 1 ]; return QByteArray();