From c9198a4ccee6924b7d53bdce767d4b5b40140447 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Tue, 25 Dec 2007 21:56:14 +0000 Subject: [PATCH] * I am pretty sure this was a bug... spotted by pure chance, should have caused messed up undo/redo when removing multibyte UTF8 glyphs via forward backspace git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23156 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/interface/textview_support/UndoBuffer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kits/interface/textview_support/UndoBuffer.cpp b/src/kits/interface/textview_support/UndoBuffer.cpp index a79ba7a9a7..c003eba4cc 100644 --- a/src/kits/interface/textview_support/UndoBuffer.cpp +++ b/src/kits/interface/textview_support/UndoBuffer.cpp @@ -392,7 +392,7 @@ _BTypingUndoBuffer_::ForwardErase() if (fTextLength < newLength) { // store the erased character for (int32 x = 0; x < charLen; x++) - buffer[fTextLength] = fTextView->ByteAt(start + x); + buffer[fTextLength + x] = fTextView->ByteAt(start + x); } fTextLength = newLength;