]> sigrok.org Git - pulseview.git/commitdiff
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)
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.


No differences found