Commit 6635da01 authored by Jan Möbius's avatar Jan Möbius

Matthias: snapshot leading zeros

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@12362 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 0746dabf
......@@ -2014,7 +2014,7 @@ void glViewer::snapshot( int _width, int _height, bool _alpha, bool _hideCoordsy
QFileInfo fi(properties_.snapshotName());
QString fname = fi.path() + QDir::separator() +fi.baseName() + "." + QString::number(properties_.snapshotCounter()) + "." + properties_.snapshotFileType().toLower();
QString fname = fi.path() + QDir::separator() +fi.baseName() + "." + QString::number(properties_.snapshotCounter()).rightJustified(7,'0') + "." + properties_.snapshotFileType().toLower();
QImageWriter writer(fname);
writer.setFormat(properties_.snapshotFileType().simplified().toLatin1());
......
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