Update to 4.9.0

This commit is contained in:
Gabriel Féron 2021-04-26 11:26:24 +02:00
commit 57fc98d4ca
3 changed files with 6 additions and 32 deletions

View file

@ -1,25 +0,0 @@
From 095a7a68482d2fc984f7f8dae1ce67d429e8aff6 Mon Sep 17 00:00:00 2001
From: Ghostkeeper <rubend@tutanota.com>
Date: Fri, 30 Oct 2020 17:52:39 +0100
Subject: [PATCH] Round coordinates before creating QPoint
QPoint only accepts integers. Maybe we'd need QPointF but honestly we probably want to render this just pixel-aligned anyway.
Contributes to issue CURA-7501.
---
UM/Qt/Bindings/PointingRectangle.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/UM/Qt/Bindings/PointingRectangle.py b/UM/Qt/Bindings/PointingRectangle.py
index a0a79c6a1..64430a632 100644
--- a/UM/Qt/Bindings/PointingRectangle.py
+++ b/UM/Qt/Bindings/PointingRectangle.py
@@ -103,7 +103,7 @@ def updatePaintNode(self, paint_node, update_data):
vertex_data[5].set(0, 0)
vertex_data[6].set(0, 0)
- target_offset = self._target - QPoint(self.x(), self.y())
+ target_offset = self._target - QPoint(round(self.x()), round(self.y()))
arrow_on_side = -1 # no arrow
arrow_size = 0

View file

@ -1,15 +1,11 @@
Name: python-uranium
Version: 4.8.0
Release: 2%{?dist}
Version: 4.9.0
Release: 1%{?dist}
Summary: A Python framework for building desktop applications
License: LGPLv3+
URL: https://github.com/Ultimaker/Uranium
Source0: %{url}/archive/%{version}.tar.gz#/Uranium-%{version}.tar.gz
# Round coordinates before creating QPoint
# QPoint(self.x(), self.y()): argument 1 has unexpected type 'float'
Patch1: %{url}/commit/095a7a6848.patch
BuildRequires: python3-devel
BuildRequires: python3-pip
BuildRequires: /usr/bin/doxygen
@ -113,6 +109,9 @@ popd
%changelog
* Mon Apr 26 2021 Gabriel Féron <feron.gabriel@gmail.com> - 4.9.0-1
- Update to 4.9.0
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.8.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild

View file

@ -1 +1 @@
SHA512 (Uranium-4.8.0.tar.gz) = a2cb923d703e626760c885ceb657566abfa5662f63729fef0b5cdf408da2ed3c23fefcd173b8af529ee79c2384505b2558379b82ba2cfd7a2d2291fe723ddbbd
SHA512 (Uranium-4.9.0.tar.gz) = 2ae202ae79559c7d19a0afebf7e5739ee229264d3811ae611743a71ab4ec1433ec9b7b9b4f5529d71137d30b72c62271eb0f2aebb3ac49b2d5ce7029b3c53ee7