Issue #190: PageMaster crash + black bubbles instead of bubbles with correct color

This commit is contained in:
Jakub Melka
2024-06-28 17:13:23 +02:00
parent 3728af3f41
commit b6fda40128
4 changed files with 18 additions and 2 deletions

View File

@ -107,8 +107,7 @@ void PageItemDelegate::paint(QPainter* painter, const QStyleOptionViewItem& opti
continue;
}
QColor color;
color.fromString(splitted.front());
QColor color = QColor::fromString(splitted.front());
QRect bubbleRect = pdf::PDFPainterHelper::drawBubble(painter, tagPoint, color, splitted.back(), Qt::AlignLeft | Qt::AlignBottom);
tagPoint.ry() += bubbleRect.height() + verticalSpacing;
}