Strict Standards: Only variables should be passed by reference in /home/abeall/public_html/fireworks/download.php on line 28

Warning: Cannot modify header information - headers already sent by (output started at /home/abeall/public_html/fireworks/download.php:28) in /home/abeall/public_html/fireworks/download.php on line 44
// Original by senocular.com, used with permission // Modified by Aaron Beall (abeall.com) // Version 1.3 function RoundNodesToPixels(){ var n , cs, ns, ss = fw.selection.length; var distp, dists, angp, angs, ang, ppt, spt; while(ss--){ if(!fw.selection[ss].contours) continue; cs = fw.selection[ss].contours.length; while (cs--){ ns = fw.selection[ss].contours[cs].nodes.length; while (ns--){ if (fw.selection[ss].contours[cs].nodes[ns].isSelectedPoint || fw.activeTool!='Subselection'){ n = fw.selection[ss].contours[cs].nodes[ns]; var vx = Math.round(n.x) - n.x, vy = Math.round(n.y) - n.y; var hasPred = n.predX != n.x || n.predY != n.y, hasSucc = n.succX != n.x || n.succY != n.y; n.x = Math.round(n.x); n.y = Math.round(n.y); n.predX = hasPred ? n.predX + vx : n.x; n.predY = hasPred ? n.predY + vy : n.y; n.succX = hasSucc ? n.succX + vx : n.x; n.succY = hasSucc ? n.succY + vy : n.y; } } } } } //try{ RoundNodesToPixels(); //}catch(e){alert([e.lineNumber, e, e.fileName])}