Fix typo. ref #850.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2018-05-21 11:27:28 +03:00
parent cf0b0b300c
commit 9c2527cf9f
3 changed files with 8 additions and 8 deletions

View File

@ -205,7 +205,7 @@ bool VBank::Prepare()
const qint64 square = details.at(i).Square(); const qint64 square = details.at(i).Square();
if (square <= 0) if (square <= 0)
{ {
qCDebug(lBank, "Preparing data for layout error: Detail squere <= 0"); qCDebug(lBank, "Preparing data for layout error: Detail square <= 0");
prepare = false; prepare = false;
return prepare; return prepare;
} }

View File

@ -191,25 +191,25 @@ void TST_VArc::TestGetPoints()
} }
{ {
qreal gSquere = 0.0;// geometry square qreal gSquare = 0.0;// geometry square
if (VFuzzyComparePossibleNulls(arc.AngleArc(), 360.0)) if (VFuzzyComparePossibleNulls(arc.AngleArc(), 360.0))
{// circle square {// circle square
gSquere = M_PI * radius * radius; gSquare = M_PI * radius * radius;
} }
else else
{// sector square {// sector square
gSquere = (M_PI * radius * radius) / 360.0 * arc.AngleArc(); gSquare = (M_PI * radius * radius) / 360.0 * arc.AngleArc();
points.append(static_cast<QPointF>(center)); points.append(static_cast<QPointF>(center));
} }
// calculated square // calculated square
const qreal cSquare = qAbs(VAbstractPiece::SumTrapezoids(points)/2.0); const qreal cSquare = qAbs(VAbstractPiece::SumTrapezoids(points)/2.0);
const qreal value = qAbs(gSquere - cSquare); const qreal value = qAbs(gSquare - cSquare);
const QString errorMsg = const QString errorMsg =
QString("Broken the second rule. Interpolation has too big computing error. Error ='%1'.").arg(value); QString("Broken the second rule. Interpolation has too big computing error. Error ='%1'.").arg(value);
const qreal epsSquere = gSquere * 0.24 / 100; // computing error 0.24 % from origin squere const qreal epsSquare = gSquare * 0.24 / 100; // computing error 0.24 % from origin square
QVERIFY2(value <= epsSquere, qUtf8Printable(errorMsg)); QVERIFY2(value <= epsSquare, qUtf8Printable(errorMsg));
} }
} }

View File

@ -381,7 +381,7 @@ void TST_VEllipticalArc::TestGetPoints3()
if (VFuzzyComparePossibleNulls(arc.AngleArc(), 360.0)) if (VFuzzyComparePossibleNulls(arc.AngleArc(), 360.0))
{// calculated full ellipse square {// calculated full ellipse square
const qreal ellipseSquare = M_PI * radius1 * radius2; const qreal ellipseSquare = M_PI * radius1 * radius2;
const qreal epsSquare = ellipseSquare * 1.7 / 100; // computing error 1.7 % from origin squere const qreal epsSquare = ellipseSquare * 1.7 / 100; // computing error 1.7 % from origin square
const qreal arcSquare = qAbs(VAbstractPiece::SumTrapezoids(points)/2.0); const qreal arcSquare = qAbs(VAbstractPiece::SumTrapezoids(points)/2.0);
const qreal diffSquare = qAbs(ellipseSquare - arcSquare); const qreal diffSquare = qAbs(ellipseSquare - arcSquare);
const QString errorMsg1 = QString("Broken the second rule. Interpolation has too big computing error. " const QString errorMsg1 = QString("Broken the second rule. Interpolation has too big computing error. "