diff --git a/OpenSim/Region/CoreModules/Scripting/VectorRender/VectorRenderModule.cs b/OpenSim/Region/CoreModules/Scripting/VectorRender/VectorRenderModule.cs index c9423f0596..aabf6741ac 100644 --- a/OpenSim/Region/CoreModules/Scripting/VectorRender/VectorRenderModule.cs +++ b/OpenSim/Region/CoreModules/Scripting/VectorRender/VectorRenderModule.cs @@ -504,10 +504,24 @@ namespace OpenSim.Region.CoreModules.Scripting.VectorRender foreach (string line in GetLines(data, dataDelim)) { - string nextLine = line.Trim(); + string nextLine = line.TrimStart(); // m_log.DebugFormat("[VECTOR RENDER MODULE]: Processing line '{0}'", nextLine); + if (nextLine.StartsWith("Text") && nextLine.Length > 5) + { + int start = 4; + if (nextLine[4] == ' ') + start++; + if (start < nextLine.Length) + { + nextLine = nextLine.Substring(start); + graph.DrawString(nextLine, myFont, myBrush, startPoint); + } + continue; + } + + nextLine = nextLine.TrimEnd(); if (nextLine.StartsWith("ResetTransf")) { graph.ResetTransform(); @@ -552,14 +566,6 @@ namespace OpenSim.Region.CoreModules.Scripting.VectorRender startPoint.X = endPoint.X; startPoint.Y = endPoint.Y; } - else if (nextLine.StartsWith("Text")) - { - int start = 4; - if(nextLine[4] == ' ') - start++; - nextLine = nextLine.Substring(start); - graph.DrawString(nextLine, myFont, myBrush, startPoint); - } else if (nextLine.StartsWith("Image")) { // We cannot reuse any generated texture involving fetching an image via HTTP since that image