X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fbe%2Fnikiroo%2Futils%2FProgress.java;h=ce88f3d8f8c55941bccc094d58b2fd42954be59c;hb=0988831f084e27de9927c1bb29e338e9263bfa42;hp=6f05110e8715305b438258b45cf1674b992a4451;hpb=59864f77f0b8d5a57f479152a3131093544af6b2;p=nikiroo-utils.git diff --git a/src/be/nikiroo/utils/Progress.java b/src/be/nikiroo/utils/Progress.java index 6f05110..ce88f3d 100644 --- a/src/be/nikiroo/utils/Progress.java +++ b/src/be/nikiroo/utils/Progress.java @@ -397,7 +397,7 @@ public class Progress { if (weight < min || weight > max) { throw new RuntimeException(String.format( "Progress object %s cannot have a weight of %f, " - + "it is outside of its parent (%s) range (%f)", + + "it is outside of its parent (%s) range (%d)", progress.name, weight, name, max)); } @@ -408,6 +408,8 @@ public class Progress { name, progress.parent.name)); } + progress.parent = this; + progress.addProgressListener(new ProgressListener() { @Override public void progress(Progress pg, String name) {