<table><tr><td style="">apol created this revision.<br />apol added reviewers: Kirigami, mart.<br />Restricted Application added projects: Plasma, Kirigami.<br />Restricted Application added a subscriber: plasma-devel.<br />apol requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D10031" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Turns out in some weird (wrong) cases, ListView sets a negative maximum()<br />
value. This makes the application crash in qcommonstyle.cpp.<br />
This prevents the crash by making sure opt->maximum is never smaller than<br />
opt->minimum.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Manual test, now Discover doesn't crash</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R858 Qt Quick Controls 2: Desktop Style</div></div></div><br /><div><strong>BRANCH</strong><div><div>master</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D10031" rel="noreferrer">https://phabricator.kde.org/D10031</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>plugin/kquickstyleitem.cpp</div></div></div><br /><div><strong>To: </strong>apol, Kirigami, mart<br /><strong>Cc: </strong>plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, davidedmundson, mart, hein<br /></div>