[nightcolor] Fix division by zero
ClosedPublic

Authored by zzag on Jan 7 2020, 1:18 PM.

Details

Summary

If qAbs(targetTemp - m_currentTemp) is less than TEMPERATURE_STEP, then
it will result in a division by zero.

FIXED-IN: 5.17.5
BUG: 415359

Diff Detail

Repository
R108 KWin
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
zzag created this revision.Jan 7 2020, 1:18 PM
Restricted Application added a project: KWin. · View Herald TranscriptJan 7 2020, 1:18 PM
Restricted Application added a subscriber: kwin. · View Herald Transcript
zzag requested review of this revision.Jan 7 2020, 1:18 PM
apol accepted this revision.Jan 7 2020, 1:25 PM
This revision is now accepted and ready to land.Jan 7 2020, 1:25 PM
zzag edited the summary of this revision. (Show Details)Jan 7 2020, 1:30 PM
This revision was automatically updated to reflect the committed changes.