mirror of
https://github.com/glest/glest-source.git
synced 2025-08-21 07:31:21 +02:00
fixed Division by float zero
Coverity scan CID 1197074 and more numbers
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user