Hello community,

here is the log from the commit of package evince for openSUSE:Factory checked 
in at 2017-11-16 13:58:26
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/evince (Old)
 and      /work/SRC/openSUSE:Factory/.evince.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "evince"

Thu Nov 16 13:58:26 2017 rev:128 rq:541786 version:3.26.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/evince/evince.changes    2017-09-13 
21:54:36.457290921 +0200
+++ /work/SRC/openSUSE:Factory/.evince.new/evince.changes       2017-11-16 
13:58:29.583107147 +0100
@@ -1,0 +2,8 @@
+Tue Nov 14 07:01:09 UTC 2017 - yfji...@suse.com
+
+- Backport fix:
+  + libdocument-return-96-dpi-if-unable-to-determine.patch
+    Backport libdocument fallback dpi to get rid of broken zoom
+    view on wayland (bgo#719400 bsc#1066138).
+
+-------------------------------------------------------------------

New:
----
  libdocument-return-96-dpi-if-unable-to-determine.patch

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

Other differences:
------------------
++++++ evince.spec ++++++
--- /var/tmp/diff_new_pack.g2wASH/_old  2017-11-16 13:58:30.755064684 +0100
+++ /var/tmp/diff_new_pack.g2wASH/_new  2017-11-16 13:58:30.763064394 +0100
@@ -26,6 +26,8 @@
 Group:          Productivity/Office/Other
 Url:            http://www.gnome.org/projects/evince/
 Source:         
http://download.gnome.org/sources/evince/3.26/%{name}-%{version}.tar.xz
+# PATCH-FIX-UPSTREAM libdocument-return-96-dpi-if-unable-to-determine.patch 
bsc#1066138 bgo#719400 yfji...@suse.com -- fix the broken zoom in/out when 
graphic backend does not return proper dpi
+Patch1:         libdocument-return-96-dpi-if-unable-to-determine.patch
 BuildRequires:  fdupes
 BuildRequires:  gcc-c++
 BuildRequires:  ghostscript-fonts-std
@@ -214,6 +216,7 @@
 %if !0%{?is_opensuse}
 translation-update-upstream
 %endif
+%patch1 -p1
 
 %build
 # on openSUSE, we share the browser plugins between browsers; do not use 
mozilla's default.

++++++ libdocument-return-96-dpi-if-unable-to-determine.patch ++++++
commit fafa2603d553ed3f81e5780cb8f8c16957d505eb
Author: Stefano Facchini <stefano.facch...@gmail.com>
Date:   Sun Sep 10 21:41:48 2017 +0200

    libdocument: return 96 DPI if unable to determine true value
    
    https://bugzilla.gnome.org/show_bug.cgi?id=719400

Index: evince-3.26.0/libdocument/ev-document-misc.c
===================================================================
--- evince-3.26.0.orig/libdocument/ev-document-misc.c
+++ evince-3.26.0/libdocument/ev-document-misc.c
@@ -513,9 +513,13 @@ ev_document_misc_get_screen_dpi (GdkScre
 
        /*diagonal in pixels*/
        dp = hypot (gdk_screen_get_width (screen), gdk_screen_get_height 
(screen));
+       if (dp == 0)
+               return 96;
 
        /*diagonal in inches*/
        di = hypot (gdk_screen_get_width_mm(screen), gdk_screen_get_height_mm 
(screen)) / 25.4;
+       if (di == 0)
+               return 96;
 
        return (dp / di);
 }

Reply via email to