Skip to content

Commit

Permalink
avoid crash
Browse files Browse the repository at this point in the history
  • Loading branch information
devernay committed Jan 3, 2018
1 parent 1765e71 commit d4989eb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Gui/KnobItemsTableGui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -775,6 +775,9 @@ KnobItemsTableView::drawRow(QPainter * painter, const QStyleOptionViewItem & opt

// Draw the label section which is the only one using a regular item and not a KnobGui
KnobTableItemPtr internalItem = found->internalItem.lock();
if (!internalItem) {
return;
}
KnobItemsTablePtr model = internalItem->getModel();
if (!model) {
return;
Expand Down

0 comments on commit d4989eb

Please sign in to comment.