Daniel Brötzmann pushed to branch master at gajim / gajim


Commits:
e985e13b by wurstsalat at 2021-02-15T21:08:55+01:00
AvatarSelector: Fix pipeline

- - - - -


1 changed file:

- gajim/gtk/avatar_selector.py


Changes:

=====================================
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)
 



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/e985e13b2d78f189beb507ebf029cc4a6dc2ff58

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/e985e13b2d78f189beb507ebf029cc4a6dc2ff58
You're receiving this email because of your account on dev.gajim.org.


_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to