mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-15 04:24:28 +00:00
tools svg2tvg: improve the usability.
Removed the .svg in the output name. Before: tiger.svg -> tiger.svg.tvg After: tiger.svg -> tiger.tvg
This commit is contained in:
parent
a4494919ac
commit
3ba33382d7
1 changed files with 1 additions and 1 deletions
|
@ -84,7 +84,7 @@ int main(int argc, char **argv)
|
||||||
|
|
||||||
//Get tvg file.
|
//Get tvg file.
|
||||||
auto tvgName = svgName.substr(svgName.find_last_of("/\\") + 1);
|
auto tvgName = svgName.substr(svgName.find_last_of("/\\") + 1);
|
||||||
tvgName.append(".tvg");
|
tvgName.replace(tvgName.length() - 3, 3, "tvg");
|
||||||
|
|
||||||
//Convert!
|
//Convert!
|
||||||
if (convert(svgName, tvgName)) {
|
if (convert(svgName, tvgName)) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue