projects
/
pulseview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dd3f9a4
)
View: Fix view item positioning
author
Soeren Apel
<soeren@apelpie.net>
Sat, 18 Feb 2017 23:37:08 +0000
(
00:37
+0100)
committer
Soeren Apel
<soeren@apelpie.net>
Sat, 18 Feb 2017 23:37:39 +0000
(
00:37
+0100)
pv/view/view.cpp
patch
|
blob
|
history
diff --git
a/pv/view/view.cpp
b/pv/view/view.cpp
index 546176b44acccb187086654522ac1966db1ad234..5959ff7b3f94f1288e2c02187a47b802da091704 100644
(file)
--- a/
pv/view/view.cpp
+++ b/
pv/view/view.cpp
@@
-1192,11
+1192,11
@@
void View::signals_changed()
}
// Add and position the pending top levels items
+ int offset = v_extents().second;
for (auto item : new_top_level_items) {
add_child_item(item);
// Position the item after the last item or at the top if there is none
- int offset = v_extents().second;
const pair<int, int> extents = item->v_extents();
if (item->enabled())