From 373ec7afa2b4191f8779c88074d4b2ff4d3b67c4 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Tue, 29 Jan 2019 22:01:54 +0000 Subject: [PATCH] try to not lose start and end spaces in osDrawText --- .../CoreModules/Scripting/VectorRender/VectorRenderModule.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/OpenSim/Region/CoreModules/Scripting/VectorRender/VectorRenderModule.cs b/OpenSim/Region/CoreModules/Scripting/VectorRender/VectorRenderModule.cs index 9f34d7fcf8..3b9c687060 100644 --- a/OpenSim/Region/CoreModules/Scripting/VectorRender/VectorRenderModule.cs +++ b/OpenSim/Region/CoreModules/Scripting/VectorRender/VectorRenderModule.cs @@ -554,7 +554,10 @@ namespace OpenSim.Region.CoreModules.Scripting.VectorRender } else if (nextLine.StartsWith("Text")) { - nextLine = nextLine.Remove(0, 4); + int start = 4; + if(nextLine[4] == ' ') + start++; + nextLine = nextLine.Substring(start); nextLine = nextLine.Trim(); graph.DrawString(nextLine, myFont, myBrush, startPoint); }