Sometimes, when the horizontal scrollview is visible, the difference
contentsHeight() - visibleHeight()
for `verticalScrollBar()->setMaximum' in `updateScrollBars' is not
always correct because `visibleHeight' has a sudden variation.
With the follow change (please forget the old patch), all seems
correct and without segfault:
(tested on x86_64 with qt-4.8.5 and qt-4.8.6)
diff -ur rosegarden~/src/gui/general/RosegardenScrollView.cpp
rosegarden/src/gui/general/RosegardenScrollView.cpp
--- rosegarden~/src/gui/general/RosegardenScrollView.cpp 2015-04-26
22:57:16.033549858 +0200
+++ rosegarden/src/gui/general/RosegardenScrollView.cpp 2015-04-26
22:57:23.273458840 +0200
@@ -621,10 +621,10 @@
void RosegardenScrollView::resizeEvent(QResizeEvent* e)
{
QAbstractScrollArea::resizeEvent(e);
- updateScrollBars();
//### What was the purpose of this?
// if (!horizontalScrollBar()->isVisible())
updateBottomWidgetGeometry();
+ updateScrollBars();
}
void RosegardenScrollView::setHBarGeometry(QScrollBar &/* hbar */, int /* x
*/, int /* y */, int /* w */, int /* h */)
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Rosegarden-devel mailing list
[email protected] - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-devel