mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-09-14 22:27:56 -04:00
Add size check before correcting selected zone
This commit is contained in:
1 parent
5b76b83433
commit
fd4dcbd092
1 file changed
+4
-1
@@ -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