diff options
author | UbitUmarov | 2019-01-29 22:01:54 +0000 |
---|---|---|
committer | UbitUmarov | 2019-01-29 22:01:54 +0000 |
commit | 373ec7afa2b4191f8779c88074d4b2ff4d3b67c4 (patch) | |
tree | 6a2650cb3e4d6d7736aec7a36a70d6352fc5302b /OpenSim | |
parent | cosmetics (diff) | |
download | opensim-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.cs | 5 |
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 | } |