Renamed variables to clear some warnings.
This commit is contained in:
@@ -390,17 +390,17 @@ void MessageLayoutContainer::paintSelection(QPainter &painter, int messageIndex,
|
||||
int lineIndex2 = lineIndex + 1;
|
||||
for (; lineIndex2 < this->lines_.size(); lineIndex2++)
|
||||
{
|
||||
Line &line = this->lines_[lineIndex2];
|
||||
QRect rect = line.rect;
|
||||
Line &line2 = this->lines_[lineIndex2];
|
||||
QRect rect = line2.rect;
|
||||
|
||||
rect.setTop(std::max(0, rect.top()) + yOffset);
|
||||
rect.setBottom(
|
||||
std::min(this->height_, rect.bottom()) +
|
||||
yOffset);
|
||||
rect.setLeft(this->elements_[line.startIndex]
|
||||
rect.setLeft(this->elements_[line2.startIndex]
|
||||
->getRect()
|
||||
.left());
|
||||
rect.setRight(this->elements_[line.endIndex - 1]
|
||||
rect.setRight(this->elements_[line2.endIndex - 1]
|
||||
->getRect()
|
||||
.right());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user