diff --git a/Graphics/drawPost.cpp b/Graphics/drawPost.cpp index 61f8e41f20bbe0dbf4415cd96aec503d3df62424..5051a34ba8cfa9a2d593c7a69395f82f19e96854 100644 --- a/Graphics/drawPost.cpp +++ b/Graphics/drawPost.cpp @@ -1081,7 +1081,7 @@ static void drawVectorArray(drawContext *ctx, PView *p, VertexArray *va) scale = (opt->ArrowSizeMax - opt->ArrowSizeMin) / l * log10(l / opt->TmpMin) / log10(opt->TmpMax / opt->TmpMin); } - scale += opt->ArrowSizeMin / l; + if(opt->ArrowSizeMin && l) scale += opt->ArrowSizeMin / l; double px = scale * v[0]; double py = scale * v[1]; double pz = scale * v[2];