mirror of
https://github.com/glest/glest-source.git
synced 2025-08-21 15:41:24 +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) {
|
bool GraphicScrollBar::mouseDown(int x, int y) {
|
||||||
if(getVisible() && getEnabled() && getEditable())
|
if(getVisible() && getEnabled() && getEditable())
|
||||||
{
|
{
|
||||||
if(activated)
|
if(activated && elementCount>0)
|
||||||
{
|
{
|
||||||
if( elementCount>visibleSize) {
|
if( elementCount>visibleSize) {
|
||||||
int pos;
|
int pos;
|
||||||
|
Reference in New Issue
Block a user