I found this uncommon bug:
1- Open veusz
2 - Edit data and add 1 dataset with 1 point
3 - add an x,y graph
Veusz crashes with a Divide by zero error. Ignoring the exception
renders Veusz unusable.
I fixed the bug in this way:
diff --git a/widgets/axisticks.py b/widgets/axisticks.py
index 3fa6d78..ddf1333 100644
--- a/widgets/axisticks.py
+++ b/widgets/axisticks.py
@@ -234,6 +234,7 @@ class AxisTicks(AxisTicksBase):
requested parameters."""
# work out range and log range
+ if self.minval==self.maxval: self.maxval+=1
therange = self.maxval - self.minval
intlogrange = int( N.log10( therange ) )
Is it correct? Can include it?
Best regards,
--
Daniele Paganelli
Researcher
Expert System Solutions S.r.l.
Via Virgilio 58/L - 41100 Modena (ITALY)
Tel: +39 0598860020 - Fax: +39 0598860024
Email: [email protected]
Web: www.expertsystemsolutions.it
Skype: danielep-ess
| Open Document Formats are Welcome |
_______________________________________________
Veusz-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/veusz-discuss