Author: niels
Date: Mon May 26 13:21:55 2014
New Revision: 9452

URL: http://svn.gna.org/viewcvs/service-tech?rev=9452&view=rev
Log:
* fixed regression in progress bars


Modified:
    trunk/lola2/src/InputOutput/Reporter.cc

Modified: trunk/lola2/src/InputOutput/Reporter.cc
URL: 
http://svn.gna.org/viewcvs/service-tech/trunk/lola2/src/InputOutput/Reporter.cc?rev=9452&r1=9451&r2=9452&view=diff
==============================================================================
--- trunk/lola2/src/InputOutput/Reporter.cc     (original)
+++ trunk/lola2/src/InputOutput/Reporter.cc     Mon May 26 13:21:55 2014
@@ -313,7 +313,7 @@
     float ratio = i / (float)n;
 
     // the width of the completed bar
-    const int c = static_cast<int>(ratio) * w;
+    const int c = static_cast<int>(ratio * w);
 
     // if there is no change since the last call, return
     if ((int)(ratio * 100) - old_p == 0)


-- 
You received this e-mail, because you subscribed the mailing list 
"service-tech-commits" which will forward you any e-mail addressed to 
[email protected]. If you want to unsubscribe or make any changes to 
your subscription, please go to
https://mail.gna.org/listinfo/service-tech-commits.

Reply via email to