Skip to content

Commit

Permalink
Some minor cleaning up.
Browse files Browse the repository at this point in the history
  • Loading branch information
agarny committed Sep 7, 2017
1 parent 796eae5 commit 43b0b5f
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -430,13 +430,12 @@ void GraphPanelPlotScaleDraw::retranslateUi()

QwtText GraphPanelPlotScaleDraw::label(double pValue) const
{
if (qFuzzyIsNull(pValue)) {
// Due to the limited precision of floating point numbers, pValue may
// not be exactly equal to zero while it really ought to be, so set it
// properly
// Due to the limited precision of floating point numbers, pValue may not be
// exactly equal to zero while it really ought to be, so set it properly, if
// needed

if (qFuzzyIsNull(pValue))
pValue = 0.0;
}

return QLocale().toString(pValue, 'g', 15);
}
Expand Down

0 comments on commit 43b0b5f

Please sign in to comment.