diff options
Diffstat (limited to 'dviware/dvisvgm/src/Ghostscript.cpp')
-rw-r--r-- | dviware/dvisvgm/src/Ghostscript.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/dviware/dvisvgm/src/Ghostscript.cpp b/dviware/dvisvgm/src/Ghostscript.cpp index fa6f1eb0eb..a428c01b9a 100644 --- a/dviware/dvisvgm/src/Ghostscript.cpp +++ b/dviware/dvisvgm/src/Ghostscript.cpp @@ -256,7 +256,10 @@ string Ghostscript::revisionstr () { int major = rev / 1000; int minor = (rev - major*1000)/10; int patch = rev % 10; - revstr = to_string(major) + "." + to_string(minor) + "." + to_string(patch); + revstr = to_string(major) + "."; + if (minor > 0 && minor < 10) + revstr += '0'; + revstr += to_string(minor) + "." + to_string(patch); } } return revstr; |