X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fbe%2Fnikiroo%2Futils%2FProgress.java;h=ce88f3d8f8c55941bccc094d58b2fd42954be59c;hb=771c4ba4a1c17a95acbfdcbdb489094b04947713;hp=6f05110e8715305b438258b45cf1674b992a4451;hpb=f4053377fa15da2f11e82955bfab86e673fa371c;p=fanfix.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) {