Add null check for view
This commit is contained in:
parent
56ec689642
commit
119bd7a222
1 changed files with 2 additions and 0 deletions
|
|
@ -144,6 +144,8 @@ struct Editor::Impl : EditorController::Receiver, IControlListener {
|
|||
template <class Control>
|
||||
void adjustMinMaxToEditRange(Control* c, EditId id)
|
||||
{
|
||||
if (!c)
|
||||
return;
|
||||
const EditRange er = EditRange::get(id);
|
||||
c->setMin(er.min);
|
||||
c->setMax(er.max);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue