From da30211b1994ab10ecde72ecd2b72b770787365f Mon Sep 17 00:00:00 2001 From: hogliux Date: Wed, 30 Aug 2017 16:22:12 +0100 Subject: [PATCH] Fixed an issue where sliders would draw incorrectly in LookAndFeel4 if the slider's value text box was placed above the slider --- modules/juce_gui_basics/lookandfeel/juce_LookAndFeel_V4.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/juce_gui_basics/lookandfeel/juce_LookAndFeel_V4.cpp b/modules/juce_gui_basics/lookandfeel/juce_LookAndFeel_V4.cpp index 29facbd2ba..ebd9057307 100644 --- a/modules/juce_gui_basics/lookandfeel/juce_LookAndFeel_V4.cpp +++ b/modules/juce_gui_basics/lookandfeel/juce_LookAndFeel_V4.cpp @@ -943,7 +943,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, - slider.isHorizontal() ? height * 0.5f : height + y); + slider.isHorizontal() ? y + height * 0.5f : height + y); const Point endPoint (slider.isHorizontal() ? width + x : startPoint.x, slider.isHorizontal() ? startPoint.y : y);