|
From: Jaime V. <vi...@fe...> - 2017-07-30 21:39:07
|
On 30-07-2017 22:12, Jaime Villate wrote:
> I will investigate it further and use use a test for when $fac is
> Infinite in which case I believe the step of drawing the arrow should
> be skipped.
This patch seems to solve the problem:
$ diff -u /usr/local/bin/xmaxima xmaxima.patched
--- /usr/local/bin/xmaxima 2017-07-30 21:21:54.201491217 +0100
+++ xmaxima.patched 2017-07-30 22:35:25.747195498 +0100
@@ -5716,7 +5716,9 @@
set dfy [lindex $all [incr i]]
#puts "[$storx $x] [$story $y] x=$x y=$y dfx=$dfx dfy=$dfy
fac=$fac"
# puts "$len $dfx $dfy"
- drawArrowScreen $c $x $y [expr {$fac * $dfx}] [expr {$fac *
$dfy} ] $vectors
+ if {$len != 0.0} {
+ drawArrowScreen $c $x $y [expr {$fac * $dfx}] [expr
{$fac * $dfy} ] $vectors
+ }
}
}
However I will make several tests before I commit it.
Regards,
Jaime
|