From afa84f849bf79bce9ef7c2179982e62df8ca520b Mon Sep 17 00:00:00 2001 From: "Johan B. C. Engelen" Date: Tue, 19 Jul 2011 20:49:49 +0200 Subject: another case of SP_ACTIVE_DESKTOP removed (bzr r10478) --- src/sp-guide.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/sp-guide.cpp b/src/sp-guide.cpp index 45491e5e5..8d9d7b87d 100644 --- a/src/sp-guide.cpp +++ b/src/sp-guide.cpp @@ -474,11 +474,12 @@ char *sp_guide_description(SPGuide const *guide, const bool verbose) { using Geom::X; using Geom::Y; - + + SPNamedView *namedview = sp_document_namedview(guide->document, NULL); GString *position_string_x = SP_PX_TO_METRIC_STRING(guide->point_on_line[X], - SP_ACTIVE_DESKTOP->namedview->getDefaultMetric()); + namedview->getDefaultMetric()); GString *position_string_y = SP_PX_TO_METRIC_STRING(guide->point_on_line[Y], - SP_ACTIVE_DESKTOP->namedview->getDefaultMetric()); + namedview->getDefaultMetric()); gchar *shortcuts = g_strdup_printf("; %s", _("Shift+drag to rotate, Ctrl+drag to move origin, Del to delete")); gchar *descr; -- cgit v1.2.3