summaryrefslogtreecommitdiff
path: root/linux/system.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linux/system.cpp')
-rw-r--r--linux/system.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/linux/system.cpp b/linux/system.cpp
index cd70493..f7fcd2c 100644
--- a/linux/system.cpp
+++ b/linux/system.cpp
@@ -15,6 +15,7 @@
#include "toolbar.h"
#include "dialogs.h"
#include "globals.h"
+#include "lc_application.h"
// =============================================================================
// Cursor functions
@@ -490,13 +491,13 @@ void SystemUpdateSnap(unsigned short move_snap, unsigned short RotateSnap)
if (!label_snap)
return;
- char text[11];
- if (move_snap)
- sprintf (text, "Move x%i", move_snap);
- else
- strcpy (text, "Move /2");
+ char Text[256], xy[32], z[32];
+
+ lcGetActiveProject()->GetSnapDistanceText(xy, z);
+
+ sprintf(Text, " M: %s %s R: %d ", xy, z, RotateSnap);
- gtk_label_set (GTK_LABEL (label_snap), text);
+ gtk_label_set (GTK_LABEL (label_snap), Text);
}
void SystemUpdateSelected(unsigned long flags, int SelectedCount, Object* Focus)