Commit 564e5f5f authored by Kurt Hindenburg's avatar Kurt Hindenburg
Browse files

cppcheck - minor scope fix

parent 5d89afe2
......@@ -2057,7 +2057,6 @@ void TerminalDisplay::extendSelection(const QPoint& position)
int offset = 0;
if (!_wordSelectionMode && !_lineSelectionMode) {
int i;
QChar selClass;
const bool left_not_right = (here.y() < _iPntSelCorr.y() ||
......@@ -2072,7 +2071,7 @@ void TerminalDisplay::extendSelection(const QPoint& position)
// Find left (left_not_right ? from start : from here)
QPoint right = left_not_right ? _iPntSelCorr : here;
if (right.x() > 0 && !_columnSelectionMode) {
i = loc(right.x(), right.y());
int i = loc(right.x(), right.y());
if (i >= 0 && i <= _imageSize) {
selClass = charClass(_image[i - 1]);
/* if (selClass == ' ')
......
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