@ -676,7 +676,7 @@ public:
break ;
case WID_GL_LIST_GROUP : { // Matrix Group
uint id_g = this - > group_sb - > GetScrolledRowFromWidget ( pt . y , this , WID_GL_LIST_GROUP , 0 , this - > tiny_step_height );
uint id_g = this - > group_sb - > GetScrolledRowFromWidget ( pt . y , this , WID_GL_LIST_GROUP );
if ( id_g > = this - > groups . size ( ) ) return ;
if ( groups [ id_g ] - > folded | | ( id_g + 1 < this - > groups . size ( ) & & this - > indents [ id_g + 1 ] > this - > indents [ id_g ] ) ) {
@ -822,7 +822,7 @@ public:
break ;
case WID_GL_LIST_GROUP : { // Matrix group
uint id_g = this - > group_sb - > GetScrolledRowFromWidget ( pt . y , this , WID_GL_LIST_GROUP , 0 , this - > tiny_step_height );
uint id_g = this - > group_sb - > GetScrolledRowFromWidget ( pt . y , this , WID_GL_LIST_GROUP );
GroupID new_g = id_g > = this - > groups . size ( ) ? INVALID_GROUP : this - > groups [ id_g ] - > index ;
if ( this - > group_sel ! = new_g & & g - > parent ! = new_g ) {
@ -855,7 +855,7 @@ public:
this - > group_over = INVALID_GROUP ;
this - > SetDirty ( ) ;
uint id_g = this - > group_sb - > GetScrolledRowFromWidget ( pt . y , this , WID_GL_LIST_GROUP , 0 , this - > tiny_step_height );
uint id_g = this - > group_sb - > GetScrolledRowFromWidget ( pt . y , this , WID_GL_LIST_GROUP );
GroupID new_g = id_g > = this - > groups . size ( ) ? NEW_GROUP : this - > groups [ id_g ] - > index ;
DoCommandP ( 0 , new_g , vindex | ( _ctrl_pressed | | this - > grouping = = GB_SHARED_ORDERS ? 1 < < 31 : 0 ) , CMD_ADD_VEHICLE_GROUP | CMD_MSG ( STR_ERROR_GROUP_CAN_T_ADD_VEHICLE ) , new_g = = NEW_GROUP ? CcAddVehicleNewGroup : nullptr ) ;
@ -996,7 +996,7 @@ public:
break ;
case WID_GL_LIST_GROUP : { // ... the list of custom groups.
uint id_g = this - > group_sb - > GetScrolledRowFromWidget ( pt . y , this , WID_GL_LIST_GROUP , 0 , this - > tiny_step_height );
uint id_g = this - > group_sb - > GetScrolledRowFromWidget ( pt . y , this , WID_GL_LIST_GROUP );
new_group_over = id_g > = this - > groups . size ( ) ? NEW_GROUP : this - > groups [ id_g ] - > index ;
break ;
}