Blame SOURCES/0001-get-rid-of-last-remains-of-libwpg.patch

8891d1
From 38a5fdf1cb946257d0dd2eb7361a8f3bb3101086 Mon Sep 17 00:00:00 2001
8891d1
From: David Tardon <dtardon@redhat.com>
8891d1
Date: Fri, 12 Jun 2015 15:45:21 +0200
8891d1
Subject: [PATCH] get rid of last remains of libwpg
8891d1
8891d1
This fixes output of shapes and images.
8891d1
8891d1
Change-Id: I85302c72005cbb5a5a378fa8ac15666d2918c3b6
8891d1
---
8891d1
 src/lib/IWORKCollector.cpp | 2 +-
8891d1
 src/lib/IWORKPath.cpp      | 8 ++++----
8891d1
 src/test/IWORKPathTest.cpp | 4 ++--
8891d1
 3 files changed, 7 insertions(+), 7 deletions(-)
8891d1
8891d1
diff --git a/src/lib/IWORKCollector.cpp b/src/lib/IWORKCollector.cpp
8891d1
index e4e0a8d..242f48b 100644
8891d1
--- a/src/lib/IWORKCollector.cpp
8891d1
+++ b/src/lib/IWORKCollector.cpp
8891d1
@@ -108,7 +108,7 @@ void drawMedia(const IWORKMediaPtr_t &media, const glm::dmat3 &trafo, IWORKOutpu
8891d1
 
8891d1
       librevenge::RVNGPropertyList props;
8891d1
 
8891d1
-      props.insert("libwpg:mime-type", get(mimetype).c_str());
8891d1
+      props.insert("librevenge:mime-type", get(mimetype).c_str());
8891d1
       props.insert("office:binary-data", librevenge::RVNGBinaryData(bytes, size));
8891d1
 
8891d1
       glm::dvec3 vec = trafo * glm::dvec3(0, 0, 1);
8891d1
diff --git a/src/lib/IWORKPath.cpp b/src/lib/IWORKPath.cpp
8891d1
index 968a14e..b1b53a8 100644
8891d1
--- a/src/lib/IWORKPath.cpp
8891d1
+++ b/src/lib/IWORKPath.cpp
8891d1
@@ -114,7 +114,7 @@ librevenge::RVNGPropertyList MoveTo::toWPG() const
8891d1
 {
8891d1
   librevenge::RVNGPropertyList element;
8891d1
 
8891d1
-  element.insert("libwpg:path-action", "M");
8891d1
+  element.insert("librevenge:path-action", "M");
8891d1
   element.insert("svg:x", pt2in(m_x));
8891d1
   element.insert("svg:y", pt2in(m_y));
8891d1
 
8891d1
@@ -177,7 +177,7 @@ librevenge::RVNGPropertyList LineTo::toWPG() const
8891d1
 {
8891d1
   librevenge::RVNGPropertyList element;
8891d1
 
8891d1
-  element.insert("libwpg:path-action", "L");
8891d1
+  element.insert("librevenge:path-action", "L");
8891d1
   element.insert("svg:x", pt2in(m_x));
8891d1
   element.insert("svg:y", pt2in(m_y));
8891d1
 
8891d1
@@ -262,7 +262,7 @@ librevenge::RVNGPropertyList CurveTo::toWPG() const
8891d1
 {
8891d1
   librevenge::RVNGPropertyList element;
8891d1
 
8891d1
-  element.insert("libwpg:path-action", "C");
8891d1
+  element.insert("librevenge:path-action", "C");
8891d1
   element.insert("svg:x", pt2in(m_x));
8891d1
   element.insert("svg:y", pt2in(m_y));
8891d1
   element.insert("svg:x1", pt2in(m_x1));
8891d1
@@ -404,7 +404,7 @@ librevenge::RVNGPropertyListVector IWORKPath::toWPG() const
8891d1
   if (m_closed)
8891d1
   {
8891d1
     librevenge::RVNGPropertyList element;
8891d1
-    element.insert("libwpg:path-action", "Z");
8891d1
+    element.insert("librevenge:path-action", "Z");
8891d1
     vec.append(element);
8891d1
   }
8891d1
 
8891d1
diff --git a/src/test/IWORKPathTest.cpp b/src/test/IWORKPathTest.cpp
8891d1
index 050f3f8..2ddf4db 100644
8891d1
--- a/src/test/IWORKPathTest.cpp
8891d1
+++ b/src/test/IWORKPathTest.cpp
8891d1
@@ -43,13 +43,13 @@ string toSVG(const IWORKPath &path)
8891d1
   {
8891d1
     const librevenge::RVNGPropertyList &element = it();
8891d1
 
8891d1
-    CPPUNIT_ASSERT(0 != element["libwpg:path-action"]);
8891d1
+    CPPUNIT_ASSERT(0 != element["librevenge:path-action"]);
8891d1
 
8891d1
     if (first)
8891d1
       first = false;
8891d1
     else
8891d1
       output << ' ';
8891d1
-    output << element["libwpg:path-action"]->getStr().cstr();
8891d1
+    output << element["librevenge:path-action"]->getStr().cstr();
8891d1
     if (element["svg:x1"])
8891d1
       output << ' ' << in2pt(element["svg:x1"]->getDouble());
8891d1
     if (element["svg:y1"])
8891d1
-- 
8891d1
2.4.2
8891d1