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