X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fdisplay%2Fnr-arena-shape.cpp;h=23bf70be5eb597e34a8cd58d67f61d4e71b5568e;hb=2b5d16fff3aa0ec778dc361859fc9140d3a0696e;hp=6974b000817f7dca8e0efeafa83d628d56e0a5c0;hpb=a370f036ddecd686df42c69fb5c490f54db1c776;p=inkscape.git diff --git a/src/display/nr-arena-shape.cpp b/src/display/nr-arena-shape.cpp index 6974b0008..23bf70be5 100644 --- a/src/display/nr-arena-shape.cpp +++ b/src/display/nr-arena-shape.cpp @@ -426,13 +426,13 @@ static bool has_inner_area(Geom::PathVector const & pv) { if ( (pv.size() == 1) && (pv.front().size() <= 1) ) { // vector has only one path with only one segment, see if that's a non-curve segment: that would mean no internal region - Geom::Curve const & c = pv.front().front(); - if ( typeid(c) == typeid(Geom::LineSegment) ) - return false; - if ( typeid(c) == typeid(Geom::HLineSegment) ) - return false; - if ( typeid(c) == typeid(Geom::VLineSegment) ) + Geom::Curve const * c = & pv.front().front(); + if ( dynamic_cast(c) || + dynamic_cast(c) || + dynamic_cast(c) ) + { return false; + } } return true; //too costly to see if it has region to be filled, so return true.