summaryrefslogtreecommitdiffstats
path: root/src/display/inkscape-cairo.cpp
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2008-06-29 12:37:25 +0000
committerjohanengelen <johanengelen@users.sourceforge.net>2008-06-29 12:37:25 +0000
commit67c0acdc560a8efe9d7a0aa4d4e38cf4dfb03630 (patch)
tree2e1f1b68d890b972e362b2e341083fba2d82a3a9 /src/display/inkscape-cairo.cpp
parentrecognize HLineSegment and VLineSegment in feeding paths to cairo (diff)
downloadinkscape-67c0acdc560a8efe9d7a0aa4d4e38cf4dfb03630.tar.gz
inkscape-67c0acdc560a8efe9d7a0aa4d4e38cf4dfb03630.zip
recognize HLineSegment and VLineSegment while looping through curves
(bzr r6087)
Diffstat (limited to 'src/display/inkscape-cairo.cpp')
-rw-r--r--src/display/inkscape-cairo.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/display/inkscape-cairo.cpp b/src/display/inkscape-cairo.cpp
index 69e766ce8..2ca6cb91d 100644
--- a/src/display/inkscape-cairo.cpp
+++ b/src/display/inkscape-cairo.cpp
@@ -10,6 +10,7 @@
#include <cairo.h>
+#include <typeinfo>
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
@@ -159,8 +160,8 @@ feed_curve_to_cairo (cairo_t *ct, NArtBpath const *bpath, NR::Matrix trans, NR::
static void
feed_curve_to_cairo(cairo_t *cr, Geom::Curve const &c, Geom::Matrix & trans, Geom::Rect view, bool optimize_stroke)
{
- if( typeid(c) == typeid(Geom::LineSegment) ||
- typeid(c) == typeid(Geom::HLineSegment) ||
+ if( typeid(c) == typeid(Geom::LineSegment) ||
+ typeid(c) == typeid(Geom::HLineSegment) ||
typeid(c) == typeid(Geom::VLineSegment) )
{
Geom::Point end_tr = c.finalPoint() * trans;