Skip to content

Commit

Permalink
fixtypo in code
Browse files Browse the repository at this point in the history
  • Loading branch information
jkriege2 committed Feb 9, 2024
1 parent 25fcb2a commit b5b10f1
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 1 deletion.
Binary file modified doc/images/JKQTPVectorFieldGraphIgnoreLength.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion lib/jkqtplotter/graphs/jkqtpvectorfield.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ void JKQTPVectorFieldGraph::draw(JKQTPEnhancedPainter &painter)
const QPointF vec_orig=getVectorDxDy(i);
const QPointF vecv=[&](QPointF vec) {
if (m_vectorLengthMode==IgnoreLength) {
const double veclen=getVectorMagnitude(vecv);
const double veclen=getVectorMagnitude(vec);
if (qFuzzyIsNull(veclen)) vec=QPointF(0,0);
else vec/=veclen; // normalize vector
}
Expand Down

0 comments on commit b5b10f1

Please sign in to comment.