← Back to team overview

simple-scan-team team mailing list archive

[Merge] lp:~victor-mireyev/simple-scan/bug-1180154 into lp:simple-scan

 

Victor Mireyev has proposed merging lp:~victor-mireyev/simple-scan/bug-1180154 into lp:simple-scan.

Requested reviews:
  Robert Ancell (robert-ancell)
Related bugs:
  Bug #1180154 in Simple Scan: "Please pad the file name auto-numbering, when saving multipole pages."
  https://bugs.launchpad.net/simple-scan/+bug/1180154

For more details, see:
https://code.launchpad.net/~victor-mireyev/simple-scan/bug-1180154/+merge/165214

When saving multiple pages pad the file name auto-numbering
-- 
https://code.launchpad.net/~victor-mireyev/simple-scan/bug-1180154/+merge/165214
Your team Simple Scan Development Team is subscribed to branch lp:simple-scan.
=== modified file 'src/book.vala'
--- src/book.vala	2012-10-14 20:16:55 +0000
+++ src/book.vala	2013-05-22 18:03:24 +0000
@@ -114,7 +114,7 @@
             prefix = uri.slice (0, uri.length - suffix.length);
         }
 
-        return File.new_for_uri ("%s-%d%s".printf (prefix, i+1, suffix));
+        return File.new_for_uri ("%s-%04d%s".printf (prefix, i+1, suffix));
     }
 
     private void save_multi_file (string type, File file) throws Error


Follow ups