mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-01-06 06:07:49 -05:00
Add size check before correcting selected zone
This commit is contained in:
@@ -1132,7 +1132,10 @@ void Ui::OpenRGBDevicePage::on_ResizeButton_clicked()
|
||||
{
|
||||
int selected_zone = ui->ZoneBox->currentIndex();
|
||||
|
||||
selected_zone -= 1;
|
||||
if (device->zones.size() > 1)
|
||||
{
|
||||
selected_zone -= 1;
|
||||
}
|
||||
|
||||
if(device->zones[selected_zone].type == ZONE_TYPE_LINEAR)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user