Hello community, here is the log from the commit of package gns3 for openSUSE:Factory checked in at 2014-12-16 14:47:54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/gns3 (Old) and /work/SRC/openSUSE:Factory/.gns3.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "gns3" Changes: -------- --- /work/SRC/openSUSE:Factory/gns3/gns3.changes 2014-12-06 13:45:45.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.gns3.new/gns3.changes 2014-12-16 14:47:17.000000000 +0100 @@ -1,0 +2,5 @@ +Wed Dec 10 18:48:59 UTC 2014 - andrea@opensuse.org + +- added gns3-1.2.1-fix_transparency.patch to fix a transparency issue with shapes + +------------------------------------------------------------------- New: ---- gns3-1.2.1-fix_transparency.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ gns3.spec ++++++ --- /var/tmp/diff_new_pack.N0Bzps/_old 2014-12-16 14:47:18.000000000 +0100 +++ /var/tmp/diff_new_pack.N0Bzps/_new 2014-12-16 14:47:18.000000000 +0100 @@ -35,6 +35,7 @@ Source2: %{name}.xml Source3: %{name}.desktop Source4: application-x-%{name}.png +Patch0: %{name}-1.2.1-fix_transparency.patch BuildArch: noarch BuildRequires: desktop-file-utils BuildRequires: python3-devel >= 3.3 @@ -70,6 +71,7 @@ %prep %setup -q -n %{name}-gui-%{version} +%patch0 -p1 %build python3 setup.py build ++++++ gns3-1.2.1-fix_transparency.patch ++++++ diff --git a/gns3/items/shape_item.py b/gns3/items/shape_item.py index 08218c0..e67c83d 100644 --- a/gns3/items/shape_item.py +++ b/gns3/items/shape_item.py @@ -280,7 +280,7 @@ def load(self, shape_info): color = QtGui.QColor(color) else: color = QtGui.QColor(255, 255, 255) - if transparency: + if transparency is not None: color.setAlpha(transparency) self.setBrush(QtGui.QBrush(color)) @@ -294,7 +294,7 @@ def load(self, shape_info): pen.setColor(border_color) if border_width is not None: pen.setWidth(int(border_width)) - if border_style: + if border_style is not None: pen.setStyle(QtCore.Qt.PenStyle(border_style)) self.setPen(pen) -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org