[Pkg-bazaar-commits] ./bzr-gtk/unstable r502: Fix float division error in gcommit
Martin Albisetti
argentina at gmail.com
Fri Apr 10 07:50:35 UTC 2009
------------------------------------------------------------
revno: 502
author: Adrian Wilkins <adrian.wilkins at gmail.com>
committer: Martin Albisetti <argentina at gmail.com>
branch nick: gtk.merges
timestamp: Fri 2008-06-20 00:36:30 -0300
message:
Fix float division error in gcommit
modified:
ui.py
-------------- next part --------------
=== modified file 'ui.py'
--- a/ui.py 2008-05-01 22:24:50 +0000
+++ b/ui.py 2008-06-20 03:36:30 +0000
@@ -58,7 +58,7 @@
def update(self, msg=None, current=None, total=None):
if msg is not None:
self.set_text(msg)
- if None not in (current, total):
+ if None not in (current, total) and total > 0:
self.set_fraction(1.0 * current / total)
while gtk.events_pending():
gtk.main_iteration()
More information about the Pkg-bazaar-commits
mailing list