summaryrefslogtreecommitdiffstats
path: root/src/pen-context.cpp
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2013-10-13 19:40:31 +0000
committerJabiertxof <jtx@jtx.marker.es>2013-10-13 19:40:31 +0000
commit34789891fcdbd099bd390ce3d0465dee24a788db (patch)
tree1b16d78374f9d56c0f03a6b20c9e2e6048f4fb5e /src/pen-context.cpp
parentupdate to trunk (diff)
parentUI message generalisation (diff)
downloadinkscape-34789891fcdbd099bd390ce3d0465dee24a788db.tar.gz
inkscape-34789891fcdbd099bd390ce3d0465dee24a788db.zip
Update to trunk
(bzr r12588.1.12)
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 d67bc5e57..428ebd6d9 100644
--- a/src/pen-context.cpp
+++ b/src/pen-context.cpp
@@ -1137,7 +1137,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) {