Too long precision in arrowsize to be accepted by LaTeX

Bug #1506727 reported by Koji
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
LaTeXDraw
Fix Released
Medium
arno_b

Bug Description

Sometimes "arrowsize", "dotsize" and else are saved with too long precision to be accepted by LaTeX system. In the example below, the setting of arrows is set to "Length = 1.40, Width = 2.00 x thickness + 2.65" from the graphical interface.

After resetting these values from interface, arrowsize=0.053cm is set in PST. However, after rearranging the drawing or after saving, the value always goes back to arrowsize=0.053000000000000005cm, which causes a LaTeX error.

Example:
% \usepackage[usenames,dvipsnames]{pstricks}
% \usepackage{epsfig}
% \usepackage{pst-grad} % For gradients
% \usepackage{pst-plot} % For axes
\psscalebox{1.0 1.0} % Change this value to rescale the drawing.
{
\begin{pspicture}(0,-0.22945008)(0.3948999,0.22945008)
\psline[linecolor=black, linewidth=0.04, arrowsize=0.053000000000000005cm 2.0,arrowlength=1.4,arrowinset=0.0]{->}(0.019999878,0.20945007)(0.4879999,0.20945007)
\psline[linecolor=black, linewidth=0.04, arrowsize=0.053000000000000005cm 2.0,arrowlength=1.4,arrowinset=0.0]{->}(0.019999878,0.20945007)(0.019999878,-0.32254994)
\end{pspicture}
}

Revision history for this message
Koji (koji.yk) wrote :
Revision history for this message
arno_b (arno.b) wrote :

Hi,
Thx for your useful report.
I just fixed the problem in:
https://github.com/arnobl/latexdraw/commit/dc4e3910eb09b73e4ea3b71898eebda0333945e0

You can test the fix with a development version:
https://ci.inria.fr/malai/job/latexdraw/1344/net.sf.latexdraw$latexdraw.core/

Cheers

Changed in latexdraw:
status: New → Fix Released
importance: Undecided → Medium
assignee: nobody → arno_b (arno.b)
milestone: none → 3.3.2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.