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 --- win/Mainfrm.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'win/Mainfrm.cpp') diff --git a/win/Mainfrm.cpp b/win/Mainfrm.cpp index 0761390..4a97393 100644 --- a/win/Mainfrm.cpp +++ b/win/Mainfrm.cpp @@ -416,11 +416,12 @@ LONG CMainFrame::OnUpdateInfo(UINT lParam, LONG wParam) m_wndModifyDlg.UpdateInfo((Object*)lParam); char str[128]; - float pos[3]; + Vector3 pos; lcGetActiveProject()->GetFocusPosition(pos); - sprintf (str, "X: %.2f Y: %.2f Z: %.2f", pos[0], pos[1], pos[2]); + lcGetActiveProject()->ConvertToUserUnits(pos); + sprintf (str, "X: %.2f Y: %.2f Z: %.2f", pos[0], pos[1], pos[2]); SetStatusBarPane(ID_INDICATOR_POSITION, str); return TRUE; -- cgit v1.2.3