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:
Hermet Park 2021-10-27 19:25:43 +09:00 committed by Hermet Park
parent a4494919ac
commit 3ba33382d7

View file

@ -84,7 +84,7 @@ int main(int argc, char **argv)
//Get tvg file.
auto tvgName = svgName.substr(svgName.find_last_of("/\\") + 1);
tvgName.append(".tvg");
tvgName.replace(tvgName.length() - 3, 3, "tvg");
//Convert!
if (convert(svgName, tvgName)) {