Fix crash loading aida-x in module browser
Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
parent
4290091df7
commit
d3c5283e8b
1 changed files with 4 additions and 3 deletions
|
@ -843,10 +843,11 @@ struct AidaSwitch : app::Switch {
|
|||
{
|
||||
engine::ParamQuantity* pq = getParamQuantity();
|
||||
|
||||
bool checked;
|
||||
if (pq == nullptr)
|
||||
return;
|
||||
|
||||
const bool checked = inverted ? pq->getValue() <= pq->getMinValue() : pq->getValue() > pq->getMinValue();
|
||||
checked = inverted ? pq->getValue() <= pq->getMinValue() : pq->getValue() > pq->getMinValue();
|
||||
else
|
||||
checked = true;
|
||||
|
||||
nvgBeginPath(args.vg);
|
||||
nvgRoundedRect(args.vg, 0, 0, box.size.x, box.size.y, kSwitchWidth/2);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue