diff --git a/modules/juce_gui_basics/lookandfeel/juce_LookAndFeel_V4.cpp b/modules/juce_gui_basics/lookandfeel/juce_LookAndFeel_V4.cpp index ebd9057307..304a321f50 100644 --- a/modules/juce_gui_basics/lookandfeel/juce_LookAndFeel_V4.cpp +++ b/modules/juce_gui_basics/lookandfeel/juce_LookAndFeel_V4.cpp @@ -942,7 +942,7 @@ void LookAndFeel_V4::drawLinearSlider (Graphics& g, int x, int y, int width, int const auto trackWidth = jmin (6.0f, slider.isHorizontal() ? height * 0.25f : width * 0.25f); - const Point startPoint (slider.isHorizontal() ? x : width * 0.5f, + const Point startPoint (slider.isHorizontal() ? x : x + width * 0.5f, slider.isHorizontal() ? y + height * 0.5f : height + y); const Point endPoint (slider.isHorizontal() ? width + x : startPoint.x,