summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorbulia byak <buliabyak@gmail.com>2009-11-08 00:50:58 +0000
committerbuliabyak <buliabyak@users.sourceforge.net>2009-11-08 00:50:58 +0000
commit377e6a7d2da99c714f8b9a99d9b48e3e9fbae5fc (patch)
tree5a7341501e53f56f011ae204aac4a021c569acee /src
parentKrzysztof's patch for 388257 (diff)
downloadinkscape-377e6a7d2da99c714f8b9a99d9b48e3e9fbae5fc.tar.gz
inkscape-377e6a7d2da99c714f8b9a99d9b48e3e9fbae5fc.zip
patch by Krzysztof for 459811
(bzr r8822)
Diffstat (limited to 'src')
-rw-r--r--src/sp-ellipse.cpp5
-rw-r--r--src/widgets/toolbox.cpp2
2 files changed, 4 insertions, 3 deletions
diff --git a/src/sp-ellipse.cpp b/src/sp-ellipse.cpp
index 769fa54fd..12ba0ed0e 100644
--- a/src/sp-ellipse.cpp
+++ b/src/sp-ellipse.cpp
@@ -893,10 +893,11 @@ sp_arc_position_set(SPArc *arc, gdouble x, gdouble y, gdouble rx, gdouble ry)
ge->rx.computed = rx;
ge->ry.computed = ry;
Inkscape::Preferences *prefs = Inkscape::Preferences::get();
+ // those pref values are in degrees, while we want radians
if (prefs->getDouble("/tools/shapes/arc/start", 0.0) != 0)
- ge->start = prefs->getDouble("/tools/shapes/arc/start", 0.0);
+ ge->start = prefs->getDouble("/tools/shapes/arc/start", 0.0) * M_PI / 180;
if (prefs->getDouble("/tools/shapes/arc/end", 0.0) != 0)
- ge->end = prefs->getDouble("/tools/shapes/arc/end", 0.0);
+ ge->end = prefs->getDouble("/tools/shapes/arc/end", 0.0) * M_PI / 180;
if (!prefs->getBool("/tools/shapes/arc/open"))
ge->closed = 1;
else
diff --git a/src/widgets/toolbox.cpp b/src/widgets/toolbox.cpp
index 46ad08262..e0fe9bfd1 100644
--- a/src/widgets/toolbox.cpp
+++ b/src/widgets/toolbox.cpp
@@ -4929,7 +4929,7 @@ sp_arctb_startend_value_changed(GtkAdjustment *adj, GObject *tbl, gchar const *v
if (sp_document_get_undo_sensitive(sp_desktop_document(desktop))) {
Inkscape::Preferences *prefs = Inkscape::Preferences::get();
- prefs->setDouble(Glib::ustring("/tools/shapes/arc") + value_name, (adj->value * M_PI)/ 180);
+ prefs->setDouble(Glib::ustring("/tools/shapes/arc/") + value_name, adj->value);
}
// quit if run by the attr_changed listener