Commit 986aed09 authored by Carlos Alves's avatar Carlos Alves
Browse files

Fix moveImage error

While changing some functions with STL, I though it was possible to move
the line from source to destination, but it is causing a problem with
console programs status line (ex: htop).

BUG: 432005
parent 050ca17b
......@@ -1111,7 +1111,7 @@ void Screen::moveImage(int dest, int sourceBegin, int sourceEnd)
const int srcY = sourceBegin / _columns;
if (dest < sourceBegin) {
for (int i = 0; i <= lines; i++) {
_screenLines[destY + i] = std::move(_screenLines[srcY + i]);
_screenLines[destY + i] = _screenLines[srcY + i];
_lineProperties[destY + i] = _lineProperties[srcY + i];
}
} else {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment