aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorUbitUmarov2019-01-29 22:01:54 +0000
committerUbitUmarov2019-01-29 22:01:54 +0000
commit373ec7afa2b4191f8779c88074d4b2ff4d3b67c4 (patch)
tree6a2650cb3e4d6d7736aec7a36a70d6352fc5302b /OpenSim
parentcosmetics (diff)
downloadopensim-SC-373ec7afa2b4191f8779c88074d4b2ff4d3b67c4.zip
opensim-SC-373ec7afa2b4191f8779c88074d4b2ff4d3b67c4.tar.gz
opensim-SC-373ec7afa2b4191f8779c88074d4b2ff4d3b67c4.tar.bz2
opensim-SC-373ec7afa2b4191f8779c88074d4b2ff4d3b67c4.tar.xz
try to not lose start and end spaces in osDrawText
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Region/CoreModules/Scripting/VectorRender/VectorRenderModule.cs5
1 files changed, 4 insertions, 1 deletions
diff --git a/OpenSim/Region/CoreModules/Scripting/VectorRender/VectorRenderModule.cs b/OpenSim/Region/CoreModules/Scripting/VectorRender/VectorRenderModule.cs
index 9f34d7f..3b9c687 100644
--- a/OpenSim/Region/CoreModules/Scripting/VectorRender/VectorRenderModule.cs
+++ b/OpenSim/Region/CoreModules/Scripting/VectorRender/VectorRenderModule.cs
@@ -554,7 +554,10 @@ namespace OpenSim.Region.CoreModules.Scripting.VectorRender
554 } 554 }
555 else if (nextLine.StartsWith("Text")) 555 else if (nextLine.StartsWith("Text"))
556 { 556 {
557 nextLine = nextLine.Remove(0, 4); 557 int start = 4;
558 if(nextLine[4] == ' ')
559 start++;
560 nextLine = nextLine.Substring(start);
558 nextLine = nextLine.Trim(); 561 nextLine = nextLine.Trim();
559 graph.DrawString(nextLine, myFont, myBrush, startPoint); 562 graph.DrawString(nextLine, myFont, myBrush, startPoint);
560 } 563 }