Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit ad1e79d3 authored by Michael Reeves's avatar Michael Reeves

fix setHScrollBarRange

parent 12f78982
......@@ -441,7 +441,7 @@ void KDiff3App::setHScrollBarRange()
int vm = m_pMergeResultWindow!=0 && m_pMergeResultWindow->isVisible() ? m_pMergeResultWindow->getVisibleTextAreaWidth() : 0;
// Find the minimum, but don't consider 0.
int pageStep = 0;
static int pageStep = 0;
if ( (pageStep==0 || pageStep>v1) && v1>0 )
pageStep = v1;
if ( (pageStep==0 || pageStep>v2) && v2>0 )
......@@ -451,7 +451,7 @@ void KDiff3App::setHScrollBarRange()
if ( (pageStep==0 || pageStep>vm) && vm>0 )
pageStep = vm;
int rangeMax = 0;
static int rangeMax = 0;
if ( w1>v1 && w1-v1>rangeMax && v1>0 )
rangeMax = w1-v1;
if ( w2>v2 && w2-v2>rangeMax && v2>0 )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment