Parsing "free hand" shapes does not work correctly

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

Bug Description

For instance:
% \usepackage[usenames,dvipsnames]{pstricks}
% \usepackage{epsfig}
% \usepackage{pst-grad} % For gradients
% \usepackage{pst-plot} % For axes
% User Packages:
%
%
\psscalebox{1.0 1.0} % Change this value to rescale the drawing.
{
\begin{pspicture}(0,-1.317071)(2.82,1.317071)
\pscustom[linecolor=black, linewidth=0.04]
{
\newpath
\moveto(0.0,1.297071)
\lineto(0.0,1.297071)
\curveto(0.0,1.297071)(0.1,1.297071)(0.2,1.297071)
\curveto(0.3,1.297071)(0.6,1.297071)(0.8,1.297071)
\curveto(1.0,1.297071)(1.4,1.297071)(1.6,1.297071)
\curveto(1.8,1.297071)(2.2,1.0970709)(2.4,0.89707094)
\curveto(2.6,0.6970709)(2.8,0.3970709)(2.8,0.29707092)
\curveto(2.8,0.19707093)(2.8,-0.10292908)(2.8,-0.30292907)
\curveto(2.8,-0.5029291)(2.8,-0.8029291)(2.8,-0.90292907)
\curveto(2.8,-1.0029291)(2.7,-1.202929)(2.6,-1.302929)
}
\end{pspicture}
}

A crash occurs and the result is not correct:
java.text.ParseException: The command newpath is not supported yet
 at net.sf.latexdraw.actions.InsertPSTCode$$anonfun$doActionBody$1.apply(InsertPSTCode.scala:70)
 at net.sf.latexdraw.actions.InsertPSTCode$$anonfun$doActionBody$1.apply(InsertPSTCode.scala:70)
 at scala.collection.LinearSeqOptimized$class.foreach(LinearSeqOptimized.scala:59)
 at scala.collection.immutable.List.foreach(List.scala:76)
 at scala.collection.generic.TraversableForwarder$class.foreach(TraversableForwarder.scala:30)
 at scala.collection.mutable.ListBuffer.foreach(ListBuffer.scala:44)
 at net.sf.latexdraw.actions.InsertPSTCode.doActionBody(InsertPSTCode.scala:70)
 at org.malai.action.Action.doIt(Action.java:83)
 at org.malai.instrument.Link.interactionStops(Link.java:251)
 at org.malai.interaction.Interaction.notifyHandlersOnStop(Interaction.java:192)
 at org.malai.interaction.Interaction.onTerminating(Interaction.java:589)
 at org.malai.interaction.TerminalState.onIngoing(TerminalState.java:35)
 at org.malai.interaction.Interaction.executeTransition(Interaction.java:278)
 at org.malai.interaction.Interaction.checkTransition(Interaction.java:307)
 at org.malai.swing.interaction.SwingInteraction.onButtonPressed(SwingInteraction.java:90)

arno_b (arno.b)
Changed in latexdraw:
status: Triaged → Fix Released
Revision history for this message
arno_b (arno.b) wrote :
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.