[colobot] 278/377: Fix code copy start range, closes #720
Didier Raboud
odyx at moszumanska.debian.org
Wed Mar 30 13:34:27 UTC 2016
This is an automated email from the git hooks/post-receive script.
odyx pushed a commit to branch debian/master
in repository colobot.
commit 84e0220ea6a1b4fdd9ea73278e0ed02c7883c30d
Author: krzys-h <krzys_h at interia.pl>
Date: Sun Feb 14 19:07:03 2016 +0100
Fix code copy start range, closes #720
---
src/ui/controls/edit.cpp | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/ui/controls/edit.cpp b/src/ui/controls/edit.cpp
index 1c59c6b..5af0825 100644
--- a/src/ui/controls/edit.cpp
+++ b/src/ui/controls/edit.cpp
@@ -1902,7 +1902,10 @@ void CEdit::GetIndentedText(std::ostream& stream, unsigned int start, unsigned i
line++;
}
- stream << m_text[i];
+ if (i >= start)
+ {
+ stream << m_text[i];
+ }
i ++;
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/colobot.git
More information about the Pkg-games-commits
mailing list