mirror of git://sigrok.org/pulseview
Fix #982 by correcting the bounding rect for the message
This commit is contained in:
parent
e2649143f1
commit
a998be27f1
|
@ -583,7 +583,7 @@ void DecodeTrace::draw_error(QPainter &p, const QString &message,
|
||||||
p.setBrush(ErrorBgColour);
|
p.setBrush(ErrorBgColour);
|
||||||
|
|
||||||
const QRectF bounding_rect =
|
const QRectF bounding_rect =
|
||||||
QRectF(pp.width(), INT_MIN / 2 + y, pp.width(), INT_MAX);
|
QRectF(pp.left(), INT_MIN / 2 + y, pp.right(), INT_MAX);
|
||||||
const QRectF text_rect = p.boundingRect(bounding_rect,
|
const QRectF text_rect = p.boundingRect(bounding_rect,
|
||||||
Qt::AlignCenter, message);
|
Qt::AlignCenter, message);
|
||||||
const float r = text_rect.height() / 4;
|
const float r = text_rect.height() / 4;
|
||||||
|
|
Loading…
Reference in New Issue