mirror of
https://github.com/jkriege2/JKQtPlotter.git
synced 2024-11-15 10:05:47 +08:00
fixtypo in code
This commit is contained in:
parent
25fcb2a74a
commit
b5b10f16f9
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 |
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user