From db7c9b5c125bf7c49a5dec583dd94f066214d8db Mon Sep 17 00:00:00 2001 From: "Jan D. Behrens" Date: Sun, 16 Sep 2012 22:22:26 +0200 Subject: [PATCH] Fixed stupid typo in the badges generator --- xonstat/batch/badges/skin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xonstat/batch/badges/skin.py b/xonstat/batch/badges/skin.py index 399bb79..813594d 100644 --- a/xonstat/batch/badges/skin.py +++ b/xonstat/batch/badges/skin.py @@ -266,7 +266,7 @@ class Skin: # fontsize is reduced if width gets too large ctx.select_font_face(self.font, C.FONT_SLANT_NORMAL, C.FONT_WEIGHT_NORMAL) shrinknick = 0 - while shrinknick < 0.6*fontsize: + while shrinknick < 0.6 * self.nick_fontsize: ctx.set_font_size(self.nick_fontsize - shrinknick) xoff, yoff, tw, th = ctx.text_extents(stripped_nick)[:4] if tw > self.nick_maxwidth: -- 2.39.2