Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package zathura-plugin-pdf-mupdf for 
openSUSE:Factory checked in at 2023-09-21 22:13:45
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/zathura-plugin-pdf-mupdf (Old)
 and      /work/SRC/openSUSE:Factory/.zathura-plugin-pdf-mupdf.new.1770 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "zathura-plugin-pdf-mupdf"

Thu Sep 21 22:13:45 2023 rev:10 rq:1112504 version:0.4.1

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/zathura-plugin-pdf-mupdf/zathura-plugin-pdf-mupdf.changes
        2023-07-18 22:07:41.722845104 +0200
+++ 
/work/SRC/openSUSE:Factory/.zathura-plugin-pdf-mupdf.new.1770/zathura-plugin-pdf-mupdf.changes
      2023-09-21 22:14:39.846608570 +0200
@@ -1,0 +2,6 @@
+Wed Sep 20 05:56:41 UTC 2023 - Paolo Stivanin <i...@paolostivanin.com>
+
+- Update to 0.4.1:
+  * Fix handling of links.
+
+-------------------------------------------------------------------

Old:
----
  zathura-pdf-mupdf-0.4.0.tar.xz

New:
----
  zathura-pdf-mupdf-0.4.1.tar.xz

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

Other differences:
------------------
++++++ zathura-plugin-pdf-mupdf.spec ++++++
--- /var/tmp/diff_new_pack.ChPyMZ/_old  2023-09-21 22:14:41.018651107 +0200
+++ /var/tmp/diff_new_pack.ChPyMZ/_new  2023-09-21 22:14:41.018651107 +0200
@@ -18,7 +18,7 @@
 
 %define realname zathura-pdf-mupdf
 Name:           zathura-plugin-pdf-mupdf
-Version:        0.4.0
+Version:        0.4.1
 Release:        0
 Summary:        Zathura PDF support through MuPDF
 License:        Zlib

++++++ zathura-pdf-mupdf-0.4.0.tar.xz -> zathura-pdf-mupdf-0.4.1.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/zathura-pdf-mupdf-0.4.0/README.md 
new/zathura-pdf-mupdf-0.4.1/README.md
--- old/zathura-pdf-mupdf-0.4.0/README.md       2022-11-27 16:51:05.000000000 
+0100
+++ new/zathura-pdf-mupdf-0.4.1/README.md       2023-09-14 00:15:05.000000000 
+0200
@@ -34,4 +34,4 @@
 Bugs
 ----
 
-Please report bugs at http://git.pwmt.org/pwmt/zathura-pdf-poppler.
+Please report bugs at http://git.pwmt.org/pwmt/zathura-pdf-mupdf.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/zathura-pdf-mupdf-0.4.0/meson.build 
new/zathura-pdf-mupdf-0.4.1/meson.build
--- old/zathura-pdf-mupdf-0.4.0/meson.build     2022-11-27 16:51:05.000000000 
+0100
+++ new/zathura-pdf-mupdf-0.4.1/meson.build     2023-09-14 00:15:05.000000000 
+0200
@@ -1,5 +1,5 @@
 project('zathura-pdf-mupdf', 'c',
-  version: '0.4.0',
+  version: '0.4.1',
   meson_version: '>=0.56',
   default_options: ['c_std=c11', 'warning_level=3']
 )
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/zathura-pdf-mupdf-0.4.0/zathura-pdf-mupdf/index.c 
new/zathura-pdf-mupdf-0.4.1/zathura-pdf-mupdf/index.c
--- old/zathura-pdf-mupdf-0.4.0/zathura-pdf-mupdf/index.c       2022-11-27 
16:51:05.000000000 +0100
+++ new/zathura-pdf-mupdf-0.4.1/zathura-pdf-mupdf/index.c       2023-09-14 
00:15:05.000000000 +0200
@@ -2,6 +2,7 @@
 
 #include <girara/datastructures.h>
 
+#include "math.h"
 #include "plugin.h"
 
 static void build_index(fz_context* ctx, fz_document* document, fz_outline*
@@ -70,8 +71,8 @@
       type                    = ZATHURA_LINK_GOTO_DEST;
       target.destination_type = ZATHURA_LINK_DESTINATION_XYZ;
       target.page_number      = fz_page_number_from_location (ctx, document, 
location);
-      target.left  = x;
-      target.top   = y;
+      if (!isnan(x)) target.left  = x;
+      if (!isnan(y)) target.top   = y;
       target.zoom  = 0.0;
     }
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/zathura-pdf-mupdf-0.4.0/zathura-pdf-mupdf/links.c 
new/zathura-pdf-mupdf-0.4.1/zathura-pdf-mupdf/links.c
--- old/zathura-pdf-mupdf-0.4.0/zathura-pdf-mupdf/links.c       2022-11-27 
16:51:05.000000000 +0100
+++ new/zathura-pdf-mupdf-0.4.1/zathura-pdf-mupdf/links.c       2023-09-14 
00:15:05.000000000 +0200
@@ -3,6 +3,7 @@
 #include <glib.h>
 
 #include "plugin.h"
+#include "math.h"
 
 girara_list_t*
 pdf_page_links_get(zathura_page_t* page, void* data, zathura_error_t* error)
@@ -59,8 +60,8 @@
       type                    = ZATHURA_LINK_GOTO_DEST;
       target.destination_type = ZATHURA_LINK_DESTINATION_XYZ;
       target.page_number      = fz_page_number_from_location 
(mupdf_document->ctx, mupdf_document->document, location);
-      target.left  = x;
-      target.top   = y;
+      if (!isnan(x)) target.left  = x;
+      if (!isnan(y)) target.top   = y;
       target.zoom  = 0.0;
     }
 

Reply via email to