projects
/
pulseview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
92fdf33
)
DecodeTrace: Fix trace resizing when new annotation classes appear
author
Soeren Apel
<soeren@apelpie.net>
Fri, 14 Jul 2017 06:46:21 +0000
(08:46 +0200)
committer
Soeren Apel
<soeren@apelpie.net>
Fri, 14 Jul 2017 06:46:21 +0000
(08:46 +0200)
pv/views/trace/decodetrace.cpp
patch
|
blob
|
history
diff --git
a/pv/views/trace/decodetrace.cpp
b/pv/views/trace/decodetrace.cpp
index e6b977ae01952ea1d22f377e8898b060c6fc3c1c..9529c50a72650958ce7f0b3abdc93b67a01a6f21 100644
(file)
--- a/
pv/views/trace/decodetrace.cpp
+++ b/
pv/views/trace/decodetrace.cpp
@@
-248,11
+248,13
@@
void DecodeTrace::paint_mid(QPainter &p, ViewItemPaintParams &pp)
// Draw the hatching
draw_unresolved_period(p, annotation_height, pp.left(), pp.right());
// Draw the hatching
draw_unresolved_period(p, annotation_height, pp.left(), pp.right());
- if ((int)visible_rows_.size() > max_visible_rows_)
-
owner_->extents_changed(false, true
);
+ if ((int)visible_rows_.size() > max_visible_rows_)
{
+
max_visible_rows_ = (int)visible_rows_.size(
);
- // Update the maximum row count if needed
- max_visible_rows_ = max(max_visible_rows_, (int)visible_rows_.size());
+ // Call order is important, otherwise the lazy event handler won't work
+ owner_->extents_changed(false, true);
+ owner_->row_item_appearance_changed(false, true);
+ }
}
void DecodeTrace::paint_fore(QPainter &p, ViewItemPaintParams &pp)
}
void DecodeTrace::paint_fore(QPainter &p, ViewItemPaintParams &pp)