mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 22:26:09 +08:00
try to not lose start and end spaces in osDrawText
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user