[59403] trunk/dports/kde/konversation

sharky at macports.org sharky at macports.org
Wed Oct 14 11:31:46 PDT 2009


Revision: 59403
          http://trac.macports.org/changeset/59403
Author:   sharky at macports.org
Date:     2009-10-14 11:31:45 -0700 (Wed, 14 Oct 2009)
Log Message:
-----------
konversation: avoid a division by zero

Modified Paths:
--------------
    trunk/dports/kde/konversation/Portfile

Added Paths:
-----------
    trunk/dports/kde/konversation/files/workaround-qfontmetrics-bug.patch

Modified: trunk/dports/kde/konversation/Portfile
===================================================================
--- trunk/dports/kde/konversation/Portfile	2009-10-14 18:27:10 UTC (rev 59402)
+++ trunk/dports/kde/konversation/Portfile	2009-10-14 18:31:45 UTC (rev 59403)
@@ -6,6 +6,7 @@
 
 name                konversation
 version             1.2
+revision            1
 categories          kde kde4
 maintainers         snc sharky
 description         KDE IRC client.
@@ -21,4 +22,8 @@
                     sha1    64376d427b628ccde56598cfc9be3d8f31d757fc \
                     rmd160  23ec1abb185b2d1a69b003996f35cd33febaf384
 
+patchfiles          workaround-qfontmetrics-bug.patch
+patch.dir           ${workpath}/${distname}
+patch.pre_args      -p1
+
 configure.args-append   ../${distname}

Added: trunk/dports/kde/konversation/files/workaround-qfontmetrics-bug.patch
===================================================================
--- trunk/dports/kde/konversation/files/workaround-qfontmetrics-bug.patch	                        (rev 0)
+++ trunk/dports/kde/konversation/files/workaround-qfontmetrics-bug.patch	2009-10-14 18:31:45 UTC (rev 59403)
@@ -0,0 +1,13 @@
+Index: konversation-1.2/src/viewer/topiclabel.cpp
+===================================================================
+--- konversation-1.2.orig/src/viewer/topiclabel.cpp	2009-10-09 13:24:23.000000000 +0200
++++ konversation-1.2/src/viewer/topiclabel.cpp	2009-10-14 20:18:45.000000000 +0200
+@@ -207,6 +207,8 @@
+         {
+             QString tmp = text;
+             int em = fontMetrics().maxWidth();
++            if (!em)
++                return text;
+             maxPixels -= fontMetrics().width("...");
+             int len, delta;
+ 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20091014/f632b6cf/attachment.html>


More information about the macports-changes mailing list