Commit 85a99351 authored by Mathieu Faverge's avatar Mathieu Faverge

Don't limit the size of the svg

parent 621a15b8
......@@ -42,7 +42,7 @@ drawsvg_header( FILE *file )
rc = fprintf(file,
"<?xml version=\"1.0\" standalone=\"no\"?>\n"
"<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\" \n \"\">\n"
"<svg width=\"2000\" height=\"2000\" version=\"1.1\" \n xmlns=\"\">\n");
"<svg version=\"1.1\" \n xmlns=\"\">\n");
if (rc < 0) {
fprintf(stderr, "Something wrong happened while writing the file (drawsvg_header)\n");
......@@ -358,8 +358,8 @@ libhqr_print_svg( const libhqr_tree_t *qrtree,
int *tiles, *steps;
int k, i;
int full = (qrtree->facto == LIBHQR_TSQR) || (qrtree->facto == LIBHQR_TSLQ);
tiles = (int*)calloc( qrtree->mt, sizeof(int));
steps = (int*)calloc( qrtree->mt, sizeof(int));
tiles = (int*)calloc( qrtree->mt, sizeof(int) );
steps = (int*)calloc( qrtree->mt, sizeof(int) );
file = fopen(filename,"w+");
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment