Hi,<br><br>Find attached a minor update to gl2ps1.2.8 submission made by Cosmin. Attached is the diff output (gl2ps1.2.8-cos and gl2ps1.2.8-cos2). Please feel free to email Cosmin or I if there are any questions.<br><br>Thanks,
<br><br>Baiju<br><br>diff -ru gl2ps-1.2.8-cos/gl2ps.c gl2ps-1.2.8-cos2/gl2ps.c<br>--- gl2ps-1.2.8-cos/gl2ps.c Wed Jun 28 17:01:00 2006<br>+++ gl2ps-1.2.8-cos2/gl2ps.c Wed Jul 05 11:29:00 2006<br>@@ -4598,22 +4598,27 @@
<br> <br> static void gl2psPrintSVGHeader(void)<br> {<br>+ int x, y, width, height;<br> time_t now;<br> time(&now);<br> <br>+ if (gl2ps->options & GL2PS_LANDSCAPE){<br>+ x = (int)gl2ps->viewport[1];
<br>+ y = (int)gl2ps->viewport[0];<br>+ width = (int)gl2ps->viewport[3];<br>+ height = (int)gl2ps->viewport[2];<br>+ }<br>+ else{<br>+ x = (int)gl2ps->viewport[0];<br>+ y = (int)gl2ps->viewport[1];
<br>+ width = (int)gl2ps->viewport[2];<br>+ height = (int)gl2ps->viewport[3];<br>+ }<br> fprintf(gl2ps->stream,<br>- "<svg viewBox=\"%d %d %d %d\" xmlns=\"<a href="http://www.w3.org/2000/svg\">
http://www.w3.org/2000/svg\</a>">\n",<br>- (gl2ps->options & GL2PS_LANDSCAPE) ? (int)gl2ps->viewport[1] :<br>- (int)gl2ps->viewport[0],<br>- (gl2ps->options & GL2PS_LANDSCAPE) ? (int)gl2ps->viewport[0] :
<br>- (int)gl2ps->viewport[1],<br>- (gl2ps->options & GL2PS_LANDSCAPE) ? (int)gl2ps->viewport[3] :<br>- (int)gl2ps->viewport[2],<br>- (gl2ps->options & GL2PS_LANDSCAPE) ? (int)gl2ps->viewport[2] :
<br>- (int)gl2ps->viewport[3]);<br>- fprintf(gl2ps->stream, "<title>\n");<br>- fprintf(gl2ps->stream, "%s\n",gl2ps->title);<br>- fprintf(gl2ps->stream, "</title>\n");
<br>+ "<svg width=\"%dpx\" height=\"%dpx\" viewBox=\"%d %d %d %d\"\n"<br>+ " xmlns=\"<a href="http://www.w3.org/2000/svg\">http://www.w3.org/2000/svg\
</a>">\n",<br>+ width, height, x, y, width, height);<br>+ fprintf(gl2ps->stream, "<title>%s</title>\n",gl2ps->title);<br> fprintf(gl2ps->stream, "<desc>\n");
<br> fprintf(gl2ps->stream,<br> "Creator: GL2PS %s\n"<br>diff -ru gl2ps-1.2.8-cos/gl2ps.h gl2ps-1.2.8-cos2/gl2ps.h<br>--- gl2ps-1.2.8-cos/gl2ps.h Wed Jun 28 12:15:00 2006<br>+++ gl2ps-1.2.8-cos2
/gl2ps.h Wed Jul 05 11:29:00 2006<br>@@ -83,7 +83,7 @@<br> 0.01 * GL2PS_MINOR_VERSION + \<br> 0.0001 * GL2PS_PATCH_VERSION)<br> <br>-#define GL2PS_VERSION_STRING "1.2.8-cos
"<br>+#define GL2PS_VERSION_STRING "1.2.8-cos2"<br> <br> /* Output file formats (the values and the ordering are important!) */<br>