aspects: Fix off-by-one error when printing subcontrols (#151)
This commit is contained in:
parent
927d2dd51c
commit
0657f1120c
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue