Skip to content

Commit

Permalink
avoid crash in GDX on changing decimals without symbol selected
Browse files Browse the repository at this point in the history
(hotfix for #1112)
  • Loading branch information
Jazzco committed Aug 22, 2019
1 parent d9b909c commit fa51112
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gdxviewer/gdxsymbolview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,8 @@ void GdxSymbolView::toggleColumnHidden()

void GdxSymbolView::updateNumericalPrecision()
{
if (!mSym)
return;
this->mSym->setNumericalPrecision(ui->sbPrecision->value(), ui->cbSqueezeZeroes->isChecked());
if (mTvModel)
ui->tvTableView->reset();
Expand Down

0 comments on commit fa51112

Please sign in to comment.