From d74ef13ddde5ca7397f45be86d7baa0e9dfc91191f73cfe2e9376aa585513bdd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ismail=20D=C3=B6nmez?= Date: Fri, 14 Sep 2012 10:26:41 +0000 Subject: [PATCH] Accepting request 134191 from GNOME:Apps Add inkscape-apply-invert-transform.patch: Apply invert transform to all image tags (bnc#779560 lp#840625). (forwarded request 134189 from dimstar) OBS-URL: https://build.opensuse.org/request/show/134191 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/inkscape?expand=0&rev=63 --- inkscape-apply-invert-transform.patch | 14 ++++++++++++++ inkscape.changes | 6 ++++++ inkscape.spec | 3 +++ 3 files changed, 23 insertions(+) create mode 100644 inkscape-apply-invert-transform.patch diff --git a/inkscape-apply-invert-transform.patch b/inkscape-apply-invert-transform.patch new file mode 100644 index 0000000..7f35d35 --- /dev/null +++ b/inkscape-apply-invert-transform.patch @@ -0,0 +1,14 @@ +diff -Naur a/src/extension/internal/pdfinput/svg-builder.cpp b/src/extension/internal/pdfinput/svg-builder.cpp +--- a/src/extension/internal/pdfinput/svg-builder.cpp 2011-07-08 13:25:09.468790000 -0500 ++++ b/src/extension/internal/pdfinput/svg-builder.cpp 2012-09-12 09:10:28.477790373 -0500 +@@ -1600,9 +1600,7 @@ + sp_repr_set_svg_double(image_node, "width", 1); + sp_repr_set_svg_double(image_node, "height", 1); + // Set transformation +- if (_is_top_level) { +- svgSetTransform(image_node, 1.0, 0.0, 0.0, -1.0, 0.0, 1.0); +- } ++ svgSetTransform(image_node, 1.0, 0.0, 0.0, -1.0, 0.0, 1.0); + + // Create href + if (embed_image) { diff --git a/inkscape.changes b/inkscape.changes index e601deb..29d38b9 100644 --- a/inkscape.changes +++ b/inkscape.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Sep 12 15:40:36 UTC 2012 - malcolmlewis@opensuse.org + +- Add inkscape-apply-invert-transform.patch: Apply invert + transform to all image tags (bnc#779560 lp#840625). + ------------------------------------------------------------------- Wed Jul 18 17:51:12 UTC 2012 - dimstar@opensuse.org diff --git a/inkscape.spec b/inkscape.spec index 120db9b..08b9960 100644 --- a/inkscape.spec +++ b/inkscape.spec @@ -35,6 +35,8 @@ Patch1: inkscape-packages.patch Patch2: inkscape-return-on-exit.patch # PATCH-FIX-UPSTREAM inkscape-poppler20.patch rh#822413 lp#1005565 badshah400@gmail.com -- Fix building with poppler 0.20.0 Patch3: inkscape-poppler20.patch +# PATCH-FIX-UPSTREAM inkscape-apply-invert-transform.patch bnc#779560 lp#840625 malcolmlewis@opensuse.org -- Apply invert transform to all image tags. +Patch4: inkscape-apply-invert-transform.patch BuildRequires: boost-devel BuildRequires: docbook-toys BuildRequires: fdupes @@ -160,6 +162,7 @@ Inkscape is a vector illustration program for the GNOME desktop. %if 0%{?suse_version} > 1210 %patch3 -p1 %endif +%patch4 -p1 %build export CFLAGS="%{optflags} -fno-strict-aliasing"