File tree Expand file tree Collapse file tree
src/com/inverseinnovations/VisualMALSignatureDesigner Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -152,7 +152,7 @@ public void actionPerformed(ActionEvent e){
152152 JTextArea textArea = new JTextArea (20 , 100 );
153153 JScrollPane textscrollPane = new JScrollPane (textArea );
154154 textArea .setEditable (false );
155- final String script = blocks .getRootNode ().createScript (null );
155+ final String script = blocks .getRootNode ().createScript (null )+ "sig.saveSignature( \" image.png \" );" ;
156156 textArea .setText (script );
157157 //save button
158158 JButton saveBut = new JButton ("Save to sig.ini" );
@@ -163,7 +163,6 @@ public void actionPerformed(ActionEvent e){
163163 try {
164164 writer = new PrintWriter ("sig.ini" , "UTF-8" );
165165 writer .print (script );
166- writer .println ("sig.saveSignature(\" image.png\" );" );
167166 writer .close ();
168167 }
169168 catch (Exception e2 ) {
Original file line number Diff line number Diff line change @@ -125,6 +125,7 @@ public String createScript(){
125125 return string .toString ();
126126 }
127127 public String createScript (String filteronly ){
128+ //do NOT output saveSignature from here
128129 StringBuilder string = new StringBuilder (generateScript ());
129130 if (getChildCount () > 0 ){
130131 for (int i = 0 ; i < getChildCount (); i ++){
You can’t perform that action at this time.
0 commit comments