1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-07-03 06:03:13 +02:00

FIX: Slider thumb clipped when at far right.

It was being drawn 2px to the right.
This commit is contained in:
James Crook 2017-08-09 11:48:00 +01:00
parent da3f28118b
commit adb42fe8a3

View File

@ -558,7 +558,7 @@ void LWSlider::OnPaint(wxDC &dc, bool highlight)
int thumbOrtho; // position in axis orthogonal to mOrientation
if (mOrientation == wxHORIZONTAL){
thumbOrtho = mCenterY - (mThumbHeight/2);
thumbPos += 3-mThumbWidth/2;
thumbPos += 1-mThumbWidth/2;
}
else{
thumbOrtho = mCenterX - (mThumbWidth/2);