aspects: Fix off-by-one error when printing subcontrols

This commit is contained in:
Peter Hartmann 2021-11-22 13:53:01 +01:00
parent 927d2dd51c
commit 1c2ef23a5f
1 changed files with 1 additions and 1 deletions

View File

@ -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();