diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-08-18 11:44:32 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-08-18 11:44:32 (GMT) |
| commit | 69b788ba7d7c0910369cbff0f708c949195683bc (patch) | |
| tree | 4b254d0248355543f463d40923f12826888be066 /src/interface/RichLabel.cpp | |
| parent | 97a819c79c5d89eca3a3227c88efe6b2c9e99b77 (diff) | |
| parent | a9cce88be619c2296080b3eaa896595dac80d452 (diff) | |
| download | powder-69b788ba7d7c0910369cbff0f708c949195683bc.zip powder-69b788ba7d7c0910369cbff0f708c949195683bc.tar.gz | |
Merge branch 'master' of github.com:FacialTurd/PowderToypp
Diffstat (limited to 'src/interface/RichLabel.cpp')
| -rw-r--r-- | src/interface/RichLabel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/interface/RichLabel.cpp b/src/interface/RichLabel.cpp index c93e217..84dc500 100644 --- a/src/interface/RichLabel.cpp +++ b/src/interface/RichLabel.cpp @@ -55,7 +55,7 @@ void RichLabel::updateRichText() int originalTextPos = 0; char * originalText = new char[textSource.length()+1]; std::copy(textSource.begin(), textSource.end(), originalText); - originalText[textSource.length()+1] = 0; + originalText[textSource.length()] = 0; int stackPos = -1; RichTextRegion * regionsStack = new RichTextRegion[256]; |
