diff options
author | fvogel <fvogelnew1@free.fr> | 2018-12-03 19:06:39 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2018-12-03 19:06:39 (GMT) |
commit | 70faead3ab7c265f9117593c313450f0f8eb4497 (patch) | |
tree | 33901ef3de5d6f77b403d233ac30125a48f65eab /generic | |
parent | a6e11187e0005e79278bcc7f9192f11062dee7b0 (diff) | |
download | tk-70faead3ab7c265f9117593c313450f0f8eb4497.zip tk-70faead3ab7c265f9117593c313450f0f8eb4497.tar.gz tk-70faead3ab7c265f9117593c313450f0f8eb4497.tar.bz2 |
New files from René Zaumseil
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tkImgSVGnano.c | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/generic/tkImgSVGnano.c b/generic/tkImgSVGnano.c index d27016c..f86c45e 100644 --- a/generic/tkImgSVGnano.c +++ b/generic/tkImgSVGnano.c @@ -82,7 +82,7 @@ static void FreeCache(ClientData clientData, Tcl_Interp *interp); */ Tk_PhotoImageFormat tkImgFmtSVGnano = { - "svgnano", /* name */ + "svg", /* name */ FileMatchSVG, /* fileMatchProc */ StringMatchSVG, /* stringMatchProc */ FileReadSVG, /* fileReadProc */ @@ -328,10 +328,10 @@ ParseSVGWithOptions( char *inputCopy = NULL; NSVGimage *nsvgImage; static const char *const fmtOptions[] = { - "-dpi", "-scale", "-unit", "-x", "-y", NULL + "-dpi", "-scale", "-unit", NULL }; enum fmtOptions { - OPT_DPI, OPT_SCALE, OPT_UNIT, OPT_X, OPT_Y + OPT_DPI, OPT_SCALE, OPT_UNIT }; /* @@ -363,10 +363,10 @@ ParseSVGWithOptions( int optIndex; /* - * Ignore the "svgnano" part of the format specification. + * Ignore the "svg" part of the format specification. */ - if (!strcasecmp(Tcl_GetString(objv[0]), "svgnano")) { + if (!strcasecmp(Tcl_GetString(objv[0]), "svg")) { continue; } @@ -418,16 +418,6 @@ ParseSVGWithOptions( unit[2] = '\0'; } break; - case OPT_X: - if (Tcl_GetDoubleFromObj(interp, objv[0], &ropts->x) == TCL_ERROR) { - goto error; - } - break; - case OPT_Y: - if (Tcl_GetDoubleFromObj(interp, objv[0], &ropts->y) == TCL_ERROR) { - goto error; - } - break; } } |