From 62e5fdf30596c76e4b9551964e5af8ea21c9741c Mon Sep 17 00:00:00 2001 From: hut Date: Tue, 13 Apr 2010 12:32:28 +0200 Subject: gui.bar: Fixed Zero Division Error --- ranger/gui/bar.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ranger/gui/bar.py b/ranger/gui/bar.py index 8b8eb33c..f5e34eb1 100644 --- a/ranger/gui/bar.py +++ b/ranger/gui/bar.py @@ -68,7 +68,8 @@ class Bar(object): rightsize = self.right.sumsize() nonfixed_items = self.left.nonfixed_items() - itemsize = int(float(wid - rightsize - fixedsize) / nonfixed_items) + 1 + itemsize = int(float(wid - rightsize - fixedsize) / \ + (nonfixed_items + 1)) + 1 for item in self.left: if not item.fixed: -- cgit 1.4.1-2-gfad0 this.form.submit();'> Soul of a tiny new machine. More thorough tests → More comprehensible and rewrite-friendly software → More resilient society.Kartik K. Agaram <vc@akkartik.com>
about summary refs log blame commit diff stats
path: root/012elf.cc
blob: c852e372108382a5ed617ce3809d43a204b681df (plain) (tree)
1
2
3
4
5
6
7
8
9