Code

heh, bool to begin with
authormental <mental@users.sourceforge.net>
Wed, 24 Jan 2007 03:35:35 +0000 (03:35 +0000)
committermental <mental@users.sourceforge.net>
Wed, 24 Jan 2007 03:35:35 +0000 (03:35 +0000)
src/sp-ellipse.cpp

index 38cc924c875f7b41cd3fb48564aee8e1de503aa0..6ab49711607fc6f878ed0e52065a33cbde57726f 100644 (file)
@@ -680,8 +680,8 @@ sp_arc_set_elliptical_path_attribute(SPArc *arc, Inkscape::XML::Node *repr)
            .arcTo(rx, ry, 0, true, true, p2)
            .closePath();
     } else {
-        bool fa = (fabs(dt) > M_PI) ? 1 : 0;
-        bool fs = (dt > 0) ? 1 : 0;
+        bool fa = (fabs(dt) > M_PI);
+        bool fs = (dt > 0);
         str.arcTo(rx, ry, 0, fa, fs, p2);
         if (ge->closed) {
             NR::Point center = NR::Point(ge->cx.computed, ge->cy.computed);