fixtypo in code

This commit is contained in:
jkriege2 2024-02-10 00:43:18 +01:00
parent 25fcb2a74a
commit b5b10f16f9
3 changed files with 1 additions and 1 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 32 KiB

After

Width:  |  Height:  |  Size: 57 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 43 KiB

View File

@ -129,7 +129,7 @@ void JKQTPVectorFieldGraph::draw(JKQTPEnhancedPainter &painter)
const QPointF vec_orig=getVectorDxDy(i); const QPointF vec_orig=getVectorDxDy(i);
const QPointF vecv=[&](QPointF vec) { const QPointF vecv=[&](QPointF vec) {
if (m_vectorLengthMode==IgnoreLength) { if (m_vectorLengthMode==IgnoreLength) {
const double veclen=getVectorMagnitude(vecv); const double veclen=getVectorMagnitude(vec);
if (qFuzzyIsNull(veclen)) vec=QPointF(0,0); if (qFuzzyIsNull(veclen)) vec=QPointF(0,0);
else vec/=veclen; // normalize vector else vec/=veclen; // normalize vector
} }