try to not lose start and end spaces in osDrawText

This commit is contained in:
UbitUmarov
2019-01-29 22:01:54 +00:00
parent dc633ee768
commit 373ec7afa2

View File

@@ -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);
}