try to not lose start and end spaces in osDrawText
parent
dc633ee768
commit
373ec7afa2
|
@ -554,7 +554,10 @@ namespace OpenSim.Region.CoreModules.Scripting.VectorRender
|
||||||
}
|
}
|
||||||
else if (nextLine.StartsWith("Text"))
|
else if (nextLine.StartsWith("Text"))
|
||||||
{
|
{
|
||||||
nextLine = nextLine.Remove(0, 4);
|
int start = 4;
|
||||||
|
if(nextLine[4] == ' ')
|
||||||
|
start++;
|
||||||
|
nextLine = nextLine.Substring(start);
|
||||||
nextLine = nextLine.Trim();
|
nextLine = nextLine.Trim();
|
||||||
graph.DrawString(nextLine, myFont, myBrush, startPoint);
|
graph.DrawString(nextLine, myFont, myBrush, startPoint);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue