diff options
| -rw-r--r-- | plugingui/slider.cc | 7 | 
1 files changed, 5 insertions, 2 deletions
| diff --git a/plugingui/slider.cc b/plugingui/slider.cc index 039123e..c657eb1 100644 --- a/plugingui/slider.cc +++ b/plugingui/slider.cc @@ -93,8 +93,11 @@ void Slider::repaintEvent(RepaintEvent* repaintEvent)  	//}  	p.setColour(Colour(0.3, alpha)); -	p.drawPoint(0, height() - 1); -	p.drawPoint(width() - 1, 0); + +	if (height() > 0 && width() > 0) { +		p.drawPoint(0, height() - 1); +		p.drawPoint(width() - 1, 0); +	}  }  void Slider::buttonEvent(ButtonEvent* buttonEvent) | 
