Skip to content

Commit b8728cb

Browse files
committed
Fix broken white balance in wizard (#176)
1 parent d3ad867 commit b8728cb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Software/src/wizard/GlobalColorCoefPage.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,8 @@ void GlobalColorCoefPage::cleanupPage()
135135
void GlobalColorCoefPage::onCoefValueChanged()
136136
{
137137
QList<WBAdjustment> adjustments;
138-
const int numOfLeds = device()->maxLedsCount();
139138

140-
for (int led = 0; led < numOfLeds; ++led) {
139+
for (int led = 0; led < _transSettings->ledCount; ++led) {
141140
WBAdjustment wba;
142141
wba.red = _ui->sbRed->value() / 100.0;
143142
wba.green = _ui->sbGreen->value() / 100.0;

0 commit comments

Comments
 (0)