diff options
| author | nyamatongwe <devnull@localhost> | 2000-05-08 08:29:41 +0000 | 
|---|---|---|
| committer | nyamatongwe <devnull@localhost> | 2000-05-08 08:29:41 +0000 | 
| commit | 11cb2e2e6871ca89cb27529e129dfb608134e8cb (patch) | |
| tree | ce9087a23b4f0ac0d92acf8b0559660581f6781e /src/Editor.cxx | |
| parent | 054fb575834def962165abdd60a9ee739525f967 (diff) | |
| download | scintilla-mirror-11cb2e2e6871ca89cb27529e129dfb608134e8cb.tar.gz | |
Fixed bug in deleting and changing case of rectangular selections.
Diffstat (limited to 'src/Editor.cxx')
| -rw-r--r-- | src/Editor.cxx | 5 | 
1 files changed, 2 insertions, 3 deletions
| diff --git a/src/Editor.cxx b/src/Editor.cxx index ab65382b3..7827c84a4 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -1348,8 +1348,7 @@ void Editor::ClearSelection() {  		int lineStart = pdoc->LineFromPosition(SelectionStart());  		int lineEnd = pdoc->LineFromPosition(SelectionEnd());  		int startPos = SelectionStart(); -		int line; -		for (line=lineStart; line <= lineEnd; line++) { +		for (int line=lineEnd; line >= lineStart; line--) {  			startPos = SelectionStart(line);  			unsigned int chars = SelectionEnd(line) - startPos;  			if (0 != chars) { @@ -1782,7 +1781,7 @@ void Editor::ChangeCaseOfSelection(bool makeUpperCase) {  	if (selType == selRectangle) {  		int lineStart = pdoc->LineFromPosition(SelectionStart());  		int lineEnd = pdoc->LineFromPosition(SelectionEnd()); -		for (int line=lineStart; line <= lineEnd; line++) { +		for (int line=lineEnd; line >= lineStart; line--) {  			pdoc->ChangeCase(  				Range(SelectionStart(line), SelectionEnd(line)),   				makeUpperCase); | 
