From efdfdfe6a57c2225e2c314bd138bf13159d706a9 Mon Sep 17 00:00:00 2001 From: leo Date: Thu, 23 Feb 2006 18:05:46 +0000 Subject: Moved all LeoCAD units conversion code to a single function, Fixed a bug moving the camera with the modify dialog. git-svn-id: http://svn.leocad.org/trunk@489 c7d43263-9d01-0410-8a33-9dba5d9f93d6 --- linux/toolbar.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'linux/toolbar.cpp') diff --git a/linux/toolbar.cpp b/linux/toolbar.cpp index 59b33f6..3152fef 100644 --- a/linux/toolbar.cpp +++ b/linux/toolbar.cpp @@ -768,10 +768,12 @@ static void statusbar_listener (int message, void *data, void *user) if (message == LC_MSG_FOCUS_CHANGED) { char text[32]; - float pos[3]; - project->GetFocusPosition (pos); + Point3 pos; + + project->GetFocusPosition(pos); + project->ConvertToUserUnits(pos); + sprintf (text, "X: %.2f Y: %.2f Z: %.2f", pos[0], pos[1], pos[2]); - gtk_label_set (GTK_LABEL (label_position), text); } } -- cgit v1.2.3