Merge from master
[fanfix.git] / library / BasicLibrary.java
index af7920bf14efdde77dbd2bebe77489f505b6fa30..f6024eef85025eefc0f0df1ada0b02fd2c2b254a 100644 (file)
@@ -311,7 +311,7 @@ abstract public class BasicLibrary {
         * 
         * @return the next luid
         */
-       protected abstract int getNextId();
+       protected abstract String getNextId();
 
        /**
         * Delete the target {@link Story}.
@@ -741,7 +741,7 @@ abstract public class BasicLibrary {
                pg.setName("Saving story");
 
                if (luid == null || luid.isEmpty()) {
-                       meta.setLuid(String.format("%03d", getNextId()));
+                       meta.setLuid(getNextId());
                } else {
                        meta.setLuid(luid);
                }