projects
/
pulseview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f980708
)
View: Don't set scroll defaults more than once
author
Soeren Apel
<soeren@apelpie.net>
Tue, 17 Jul 2018 16:45:12 +0000
(18:45 +0200)
committer
Uwe Hermann
<uwe@hermann-uwe.de>
Sat, 21 Jul 2018 16:57:21 +0000
(18:57 +0200)
pv/views/trace/view.cpp
patch
|
blob
|
history
diff --git
a/pv/views/trace/view.cpp
b/pv/views/trace/view.cpp
index 96b17fdaf25a9a791bf675e97c387b985d849b69..0070c743e8d13de97747b356aeb49d287cc847cc 100644
(file)
--- a/
pv/views/trace/view.cpp
+++ b/
pv/views/trace/view.cpp
@@
-1053,8
+1053,10
@@
void View::update_scroll()
vscrollbar->setRange(extents.first - areaSize.height(),
extents.second);
- if (scroll_needs_defaults_)
+ if (scroll_needs_defaults_)
{
set_scroll_default();
+ scroll_needs_defaults_ = false;
+ }
}
void View::reset_scroll()