/***************************************************************************
- * Copyright (C) 2005-2010 by the Quassel Project *
+ * Copyright (C) 2005-2012 by the Quassel Project *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
bool atTop = (start == 0);
bool atBottom = (end == _lines.count() - 1);
- bool moveTop = false;
// clear selection
if(_selectingItem) {
if(_selectionStart >= 0) {
int offset = end - start + 1;
if(_selectionStart >= start)
- _selectionStart = qMax(_selectionStart -= offset, start);
+ _selectionStart = qMax(_selectionStart - offset, start);
if(_selectionEnd >= start)
_selectionEnd -= offset;
if(_firstSelectionRow >= start)
int moveEnd = _lines.count() - 1;
if(start < _lines.count() - start) {
// move top part
- moveTop = true;
moveEnd = start - 1;
} else {
// move bottom part