From: Jan D. Behrens Date: Sun, 16 Sep 2012 20:22:26 +0000 (+0200) Subject: Fixed stupid typo in the badges generator X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=db7c9b5c125bf7c49a5dec583dd94f066214d8db;p=xonotic%2Fxonstat.git Fixed stupid typo in the badges generator --- 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: