From ca59a0674391db839ff7d7a98f7749fdbf5c1234 Mon Sep 17 00:00:00 2001 From: Artem Pavlenko Date: Fri, 18 Jun 2010 15:39:23 +0000 Subject: [PATCH] + move deg2rad to svg_path_commands --- include/mapnik/svg/svg_path_commands.hpp | 6 ++++++ include/mapnik/svg/svg_path_grammar.hpp | 8 +------- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/include/mapnik/svg/svg_path_commands.hpp b/include/mapnik/svg/svg_path_commands.hpp index 837a24fed..6d9434d7a 100644 --- a/include/mapnik/svg/svg_path_commands.hpp +++ b/include/mapnik/svg/svg_path_commands.hpp @@ -23,6 +23,7 @@ #ifndef SVG_COMMANDS_HPP #define SVG_COMMANDS_HPP +#include #include #include #include @@ -31,6 +32,11 @@ namespace mapnik { namespace svg { using namespace boost::fusion; + inline double deg2rad(double deg) + { + return (M_PI * deg)/180.0; + } + template struct move_to { diff --git a/include/mapnik/svg/svg_path_grammar.hpp b/include/mapnik/svg/svg_path_grammar.hpp index fdce29dfd..3cc078d2f 100644 --- a/include/mapnik/svg/svg_path_grammar.hpp +++ b/include/mapnik/svg/svg_path_grammar.hpp @@ -36,13 +36,7 @@ namespace mapnik { namespace svg { using namespace boost::spirit; using namespace boost::fusion; using namespace boost::phoenix; - - inline double deg2rad(double deg) - { - return (M_PI * deg)/180.0; - } - - + template struct svg_path_grammar : qi::grammar {