fixed Division by float zero
Coverity scan CID 1197074 and more numbers
This commit is contained in:
parent
db0007d277
commit
a11855e220
|
@ -838,7 +838,7 @@ void GraphicScrollBar::init(int x, int y, bool horizontal,int length, int thickn
|
|||
bool GraphicScrollBar::mouseDown(int x, int y) {
|
||||
if(getVisible() && getEnabled() && getEditable())
|
||||
{
|
||||
if(activated)
|
||||
if(activated && elementCount>0)
|
||||
{
|
||||
if( elementCount>visibleSize) {
|
||||
int pos;
|
||||
|
|
Loading…
Reference in New Issue