svn commit: r504516 - in head/comms/quisk: . files

Stephen Hurd shurd at FreeBSD.org
Wed Jun 19 06:52:33 UTC 2019


Author: shurd
Date: Wed Jun 19 06:52:31 2019
New Revision: 504516
URL: https://svnweb.freebsd.org/changeset/ports/504516

Log:
  Fix error in positioning sliders when the font size is larger than the
  slider size introduced by r504514.

Modified:
  head/comms/quisk/Makefile
  head/comms/quisk/files/patch-quisk__widgets.py

Modified: head/comms/quisk/Makefile
==============================================================================
--- head/comms/quisk/Makefile	Wed Jun 19 06:50:45 2019	(r504515)
+++ head/comms/quisk/Makefile	Wed Jun 19 06:52:31 2019	(r504516)
@@ -3,7 +3,7 @@
 
 PORTNAME=	quisk
 DISTVERSION=	4.1.40
-PORTREVISION=	3
+PORTREVISION=	4
 CATEGORIES=	comms hamradio
 MASTER_SITES=	CHEESESHOP
 

Modified: head/comms/quisk/files/patch-quisk__widgets.py
==============================================================================
--- head/comms/quisk/files/patch-quisk__widgets.py	Wed Jun 19 06:50:45 2019	(r504515)
+++ head/comms/quisk/files/patch-quisk__widgets.py	Wed Jun 19 06:52:31 2019	(r504516)
@@ -1,6 +1,6 @@
---- quisk_widgets.py.orig	2019-06-19 06:35:39 UTC
+--- quisk_widgets.py.orig	2019-05-28 12:22:59 UTC
 +++ quisk_widgets.py
-@@ -248,7 +248,16 @@ class SliderBoxH:
+@@ -248,7 +248,15 @@ class SliderBoxH:
      else:
        self.text_ctrl = wx.StaticText(parent, -1, t, pos=pos)
        w2, h2 = self.text_ctrl.GetSize()
@@ -10,10 +10,9 @@
 +      p2 = pos[1]
 +      if h3 > h2:
 +        p2 -= (h3 - h2) / 2
-+        h2 = h3
 +      else:
 +        p2 += (h2 - h3) / 2
-+      self.slider.SetSize((width - w2, h2))
++      self.slider.SetSize((width - w2, h3))
 +      self.slider.SetPosition((pos[0] + w2, p2))
      self.slider.Bind(wx.EVT_SCROLL, self.OnScroll)
      self.text_ctrl.SetForegroundColour(parent.GetForegroundColour())


More information about the svn-ports-all mailing list