try to not lose start and end spaces in osDrawText

0.9.1.0-post-fixes
UbitUmarov 2019-01-29 22:01:54 +00:00
parent dc633ee768
commit 373ec7afa2
1 changed files with 4 additions and 1 deletions

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