fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / external / libetonyek / 0001-try-to-fix-build-on-Windows.patch.1
blob0338ac1d64a4f1943efe799ccc1816fee11ad1d1
1 From f7ca931e581f2d63f73bcd324da50f5ee3ae1f59 Mon Sep 17 00:00:00 2001
2 From: David Tardon <dtardon@redhat.com>
3 Date: Thu, 25 Jun 2015 18:09:17 +0200
4 Subject: [PATCH] try to fix build on Windows
6 Change-Id: Iff2aa943aef9c23c60e400f092f884fc00de4ccf
7 ---
8  src/lib/IWORKPath.cpp | 14 +-------------
9  1 file changed, 1 insertion(+), 13 deletions(-)
11 diff --git a/src/lib/IWORKPath.cpp b/src/lib/IWORKPath.cpp
12 index 0600106..cb33097 100644
13 --- a/src/lib/IWORKPath.cpp
14 +++ b/src/lib/IWORKPath.cpp
15 @@ -266,18 +266,6 @@ void CurveTo::write(RVNGPropertyList &element) const
17  }
19 -namespace
22 -void doAppendCurveTo(IWORKPath *const path, const std::vector<double> &points)
24 -  assert(path);
25 -  assert(points.size() == 6);
26 -  path->appendCurveTo(points[0], points[1], points[2], points[3], points[4], points[5]);
31  IWORKPath::Element::~Element()
32  {
33  }
34 @@ -301,7 +289,7 @@ IWORKPath::IWORKPath(const std::string &path)
36    const qi::rule<string::const_iterator, ascii::space_type> rule =
37      +(
38 -      ('C' >> qi::repeat(6)[double_])[bind(&doAppendCurveTo, this, qi::_1)]
39 +      ('C' >> double_ >> double_ >> double_ >> double_ >> double_ >> double_)[bind(&IWORKPath::appendCurveTo, this, qi::_1, qi::_2, qi::_3, qi::_4, qi::_5, qi::_6)]
40        | ('M' >> double_ >> double_)[bind(&IWORKPath::appendMoveTo, this, qi::_1, qi::_2)]
41        | ('L' >> double_ >> double_)[bind(&IWORKPath::appendLineTo, this, qi::_1, qi::_2)]
42        | qi::char_('Z')[bind(&IWORKPath::appendClose, this)]
43 -- 
44 2.4.2