mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
Changed some formatting, also fixed an unrelated bug.
This commit is contained in:
parent
fed8cca10e
commit
7c367b73e6
2 changed files with 3 additions and 2 deletions
|
@ -162,8 +162,9 @@ void TextElement::addToContainer(MessageLayoutContainer &container,
|
|||
auto e = (new TextLayoutElement(
|
||||
*this, text, QSize(width, metrics.height()),
|
||||
color, this->style_, container.getScale()))
|
||||
->setText(text);
|
||||
->setLink(this->getLink());
|
||||
e->setTrailingSpace(trailingSpace);
|
||||
e->setText(text);
|
||||
|
||||
// If URL link was changed,
|
||||
// Should update it in MessageLayoutElement too!
|
||||
|
|
|
@ -321,7 +321,7 @@ void MessageLayoutContainer::paintSelection(QPainter &painter, int messageIndex,
|
|||
int x = this->elements_[line.startIndex]->getRect().left();
|
||||
int r = this->elements_[line.endIndex - 1]->getRect().right();
|
||||
|
||||
if (line.endCharIndex < selection.selectionMin.charIndex) {
|
||||
if (line.endCharIndex <= selection.selectionMin.charIndex) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue