From f5ebd9da146b019e1f9409858dff3bfa605ee1b3 Mon Sep 17 00:00:00 2001 From: wurstsalat <mailtrash@posteo.de> Date: Mon, 15 Feb 2021 21:08:55 +0100 Subject: [PATCH] AvatarSelector: Fix pipeline --- gajim/gtk/avatar_selector.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gajim/gtk/avatar_selector.py b/gajim/gtk/avatar_selector.py index 0f14e10b0a..dea230f367 100755 --- a/gajim/gtk/avatar_selector.py +++ b/gajim/gtk/avatar_selector.py @@ -231,7 +231,7 @@ def get_pixbuf(self): width = min(self._crop.width, width - self._crop.x) height = min(self._crop.height, height - self._crop.y) - if width <= 0 or height <=0: + if width <= 0 or height <= 0: return None return GdkPixbuf.Pixbuf.new_subpixbuf( @@ -661,7 +661,7 @@ def _eval_radial_line(center_x, center_y, bounds_x, bounds_y, user_x): # Prevent division by zero return 0 - decision_slope = float(bounds_y - center_y) / (bounds_x - center_x) + decision_slope = slope_y / slope_x decision_intercept = - float(decision_slope * bounds_x) return int(decision_slope * user_x + decision_intercept) -- GitLab