projects
/
pulseview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e264914
)
Fix #982 by correcting the bounding rect for the message
author
Soeren Apel
<soeren@apelpie.net>
Wed, 14 Jun 2017 16:38:13 +0000
(18:38 +0200)
committer
Uwe Hermann
<uwe@hermann-uwe.de>
Sat, 17 Jun 2017 19:21:53 +0000
(21:21 +0200)
pv/views/trace/decodetrace.cpp
patch
|
blob
|
history
diff --git
a/pv/views/trace/decodetrace.cpp
b/pv/views/trace/decodetrace.cpp
index 6ccd3fb87dc085f9c50b9baa109645ac68c9b213..ef8210492ddc09d5f3b7a9bfd7cbf09187056a67 100644
(file)
--- a/
pv/views/trace/decodetrace.cpp
+++ b/
pv/views/trace/decodetrace.cpp
@@
-583,7
+583,7
@@
void DecodeTrace::draw_error(QPainter &p, const QString &message,
p.setBrush(ErrorBgColour);
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,
Qt::AlignCenter, message);
const float r = text_rect.height() / 4;