Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package libqt5-qtpbfimageformat for 
openSUSE:Factory checked in at 2023-10-29 19:41:49
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libqt5-qtpbfimageformat (Old)
 and      /work/SRC/openSUSE:Factory/.libqt5-qtpbfimageformat.new.17445 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "libqt5-qtpbfimageformat"

Sun Oct 29 19:41:49 2023 rev:3 rq:1120971 version:2.6

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/libqt5-qtpbfimageformat/libqt5-qtpbfimageformat.changes
  2023-10-12 11:45:21.252039996 +0200
+++ 
/work/SRC/openSUSE:Factory/.libqt5-qtpbfimageformat.new.17445/libqt5-qtpbfimageformat.changes
       2023-10-29 19:42:15.536377453 +0100
@@ -1,0 +2,6 @@
+Sun Oct 29 00:14:40 CEST 2023 - [email protected]
+
+- Update to version 2.6
+  * Fixed/improved path label layout algorithm.
+
+-------------------------------------------------------------------

Old:
----
  QtPBFImagePlugin-2.5.tar.gz

New:
----
  QtPBFImagePlugin-2.6.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ libqt5-qtpbfimageformat.spec ++++++
--- /var/tmp/diff_new_pack.FrpIiR/_old  2023-10-29 19:42:15.996394189 +0100
+++ /var/tmp/diff_new_pack.FrpIiR/_new  2023-10-29 19:42:16.000394334 +0100
@@ -23,7 +23,7 @@
 %else
 Name:           libqt5-qtpbfimageformat
 %endif
-Version:        2.5
+Version:        2.6
 Release:        1
 Summary:        Qt 5 PBF Image Format Plugin
 License:        LGPL-3.0-only

++++++ QtPBFImagePlugin-2.5.tar.gz -> QtPBFImagePlugin-2.6.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/QtPBFImagePlugin-2.5/.appveyor.yml 
new/QtPBFImagePlugin-2.6/.appveyor.yml
--- old/QtPBFImagePlugin-2.5/.appveyor.yml      2023-10-10 23:04:39.000000000 
+0200
+++ new/QtPBFImagePlugin-2.6/.appveyor.yml      2023-10-22 23:53:39.000000000 
+0200
@@ -1,4 +1,4 @@
-version: 2.5.{build}
+version: 2.6.{build}
 
 configuration:
   - Release
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/QtPBFImagePlugin-2.5/pbfplugin.pro 
new/QtPBFImagePlugin-2.6/pbfplugin.pro
--- old/QtPBFImagePlugin-2.5/pbfplugin.pro      2023-10-10 23:04:39.000000000 
+0200
+++ new/QtPBFImagePlugin-2.6/pbfplugin.pro      2023-10-22 23:53:39.000000000 
+0200
@@ -2,7 +2,7 @@
 TEMPLATE = lib
 CONFIG += plugin
 QT += gui
-VERSION = 2.5
+VERSION = 2.6
 
 PROTOS = protobuf/vector_tile.proto
 include(protobuf/vector_tile.pri)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/QtPBFImagePlugin-2.5/src/textpathitem.cpp 
new/QtPBFImagePlugin-2.6/src/textpathitem.cpp
--- old/QtPBFImagePlugin-2.5/src/textpathitem.cpp       2023-10-10 
23:04:39.000000000 +0200
+++ new/QtPBFImagePlugin-2.6/src/textpathitem.cpp       2023-10-22 
23:53:39.000000000 +0200
@@ -171,6 +171,12 @@
        return lines;
 }
 
+static qreal diff(qreal a1, qreal a2)
+{
+       qreal d = qAbs(a1 - a2);
+       return (d > 180) ? 360 - d : d;
+}
+
 static QPainterPath textPath(const QPainterPath &path, qreal textWidth,
   qreal maxAngle, qreal charWidth, const QRectF &tileRect)
 {
@@ -189,11 +195,16 @@
                        qreal sl = l.length();
                        qreal a = l.angle();
 
-                       if ((sl < charWidth) || (j > 1 && qAbs(angle - a) > 
maxAngle)) {
+                       if (sl < charWidth) {
                                if (length > textWidth)
                                        return subpath(pl, last, j - 1, length 
- textWidth);
                                last = j;
                                length = 0;
+                       } else if (j > 1 && diff(angle, a) > maxAngle) {
+                               if (length > textWidth)
+                                       return subpath(pl, last, j - 1, length 
- textWidth);
+                               last = j - 1;
+                               length = sl;
                        } else
                                length += sl;
 

++++++ debian.changelog ++++++
--- /var/tmp/diff_new_pack.FrpIiR/_old  2023-10-29 19:42:16.084397390 +0100
+++ /var/tmp/diff_new_pack.FrpIiR/_new  2023-10-29 19:42:16.088397535 +0100
@@ -1,3 +1,9 @@
+qt5-pbf-image-plugin (2.6) stable; urgency=low
+
+  * Fixed/improved path label layout algorithm.
+
+ -- Martin Tuma <[email protected]>  Sun, 29 Oct 2023 00:15:51 +0200
+
 qt5-pbf-image-plugin (2.5) stable; urgency=low
 
   * Fixed/improved path label layout algorithm.

++++++ qtpbfplugin.dsc ++++++
--- /var/tmp/diff_new_pack.FrpIiR/_old  2023-10-29 19:42:16.132399136 +0100
+++ /var/tmp/diff_new_pack.FrpIiR/_new  2023-10-29 19:42:16.136399282 +0100
@@ -1,10 +1,10 @@
 Format: 1.0
 Source: qt5-pbf-image-plugin
-Version: 2.5-1
+Version: 2.6-1
 Binary: qt5-pbf-image-plugin
 Maintainer: Martin Tuma <[email protected]>
 Architecture: any
 Build-Depends: debhelper (>= 9), qtbase5-dev, qtbase5-dev-tools, qt5-qmake, 
libprotobuf-dev, protobuf-compiler, zlib1g-dev
 Files:
- 00000000000000000000000000000000 0 QtPBFImagePlugin-2.5.tar.gz
+ 00000000000000000000000000000000 0 QtPBFImagePlugin-2.6.tar.gz
 

Reply via email to