summaryrefslogtreecommitdiffstats
path: root/src/pen-context.cpp
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2013-10-13 18:20:26 +0000
committerJabiertxof <jtx@jtx.marker.es>2013-10-13 18:20:26 +0000
commit8e30821fa53134256a47dc977e607b1949eeec33 (patch)
treed51ef233932502ef56d563ac8497483878691628 /src/pen-context.cpp
parentUpdate to trunk (diff)
parentwe don't have nondocked dialogs, so rewrite restoring dialogs on startup via ... (diff)
downloadinkscape-8e30821fa53134256a47dc977e607b1949eeec33.tar.gz
inkscape-8e30821fa53134256a47dc977e607b1949eeec33.zip
Update to trunk
(bzr r11950.1.181)
Diffstat (limited to 'src/pen-context.cpp')
-rw-r--r--src/pen-context.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pen-context.cpp b/src/pen-context.cpp
index 936afe4e0..0d4b5df7e 100644
--- a/src/pen-context.cpp
+++ b/src/pen-context.cpp
@@ -1394,7 +1394,7 @@ static void spdc_pen_set_angle_distance_status_message(SPPenContext *const pc, G
SPDesktop *desktop = SP_EVENT_CONTEXT(pc)->desktop;
Geom::Point rel = p - pc->p[pc_point_to_compare];
Inkscape::Util::Quantity q = Inkscape::Util::Quantity(Geom::L2(rel), "px");
- GString *dist = g_string_new(q.string(*desktop->namedview->doc_units).c_str());
+ GString *dist = g_string_new(q.string(desktop->namedview->doc_units).c_str());
double angle = atan2(rel[Geom::Y], rel[Geom::X]) * 180 / M_PI;
Inkscape::Preferences *prefs = Inkscape::Preferences::get();
if (prefs->getBool("/options/compassangledisplay/value", 0) != 0) {