~valavanisalex/ubuntu/precise/inkscape/fix-943984

« back to all changes in this revision

Viewing changes to src/sp-ellipse.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Kees Cook
  • Date: 2009-12-24 16:10:36 UTC
  • Revision ID: james.westby@ubuntu.com-20091224161036-low9f46u1pveqd6i
Tags: 0.47.0-1ubuntu2
Brown paper bag update: actually use the correct version of the
source tree.

Show diffs side-by-side

added added

removed removed

Lines of Context:
893
893
    ge->rx.computed = rx;
894
894
    ge->ry.computed = ry;
895
895
    Inkscape::Preferences *prefs = Inkscape::Preferences::get();
 
896
    // those pref values are in degrees, while we want radians
896
897
    if (prefs->getDouble("/tools/shapes/arc/start", 0.0) != 0)
897
 
        ge->start = prefs->getDouble("/tools/shapes/arc/start", 0.0);
 
898
        ge->start = prefs->getDouble("/tools/shapes/arc/start", 0.0) * M_PI / 180;
898
899
    if (prefs->getDouble("/tools/shapes/arc/end", 0.0) != 0)
899
 
        ge->end = prefs->getDouble("/tools/shapes/arc/end", 0.0);
 
900
        ge->end = prefs->getDouble("/tools/shapes/arc/end", 0.0) * M_PI / 180;
900
901
    if (!prefs->getBool("/tools/shapes/arc/open"))
901
902
        ge->closed = 1;
902
903
    else