]> sigrok.org Git - pulseview.git/commit
DecodeTrace: Make sure first row's label width can be calculated
authorSoeren Apel <redacted>
Wed, 20 Apr 2016 16:15:12 +0000 (18:15 +0200)
committerSoeren Apel <redacted>
Tue, 3 May 2016 19:11:33 +0000 (21:11 +0200)
commitcd0c558b8e1dbae12c3faba2349d874942b96066
tree08177ba16360d47d1f017cb4e303fd5008682fd3
parent9e8f0e503e0c79c3765947ba5abae0ffc76850c4
DecodeTrace: Make sure first row's label width can be calculated

Without a pen set, p.boundingRect() returns 0. All other rows
have their label text width calculated with a pen, which makes
p.boundingRect() work as intended. Fix this by setting a pen
before the first row is processed.
pv/view/decodetrace.cpp