From 0bb3a1fe95aad07f0e097665c80f8d9ff650aa8d Mon Sep 17 00:00:00 2001 From: Thomas Geymayer Date: Sat, 9 Feb 2013 12:15:34 +0100 Subject: [PATCH] Remove CanvasText space hack. With corrected alginment calculations within latest SimGear this hack is not needed anymore. --- Nasal/canvas/api.nas | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Nasal/canvas/api.nas b/Nasal/canvas/api.nas index 1a90a8414..7a104911d 100644 --- a/Nasal/canvas/api.nas +++ b/Nasal/canvas/api.nas @@ -481,8 +481,7 @@ var Text = { # Set the text setText: func(text) { - # add space because osg seems to remove last character if its a space - me.set("text", typeof(text) == 'scalar' ? text ~ ' ' : ""); + me.set("text", typeof(text) == 'scalar' ? text : ""); }, # Set alignment #