Changeset 247:9162c8c75ebc


Ignore:
Timestamp:
May 1, 2011, 6:17:07 PM (13 years ago)
Author:
Evgeny Stambulchik <Evgeny.Stambulchik@…>
Branch:
default
Phase:
public
Message:

Safety checks for scaling values.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source/class/pf/Application.js

    r246 r247  
    14001400                return;
    14011401            }
     1402            if (vmin >= vmax) {
     1403                this.msgWindow.error("Min. scale must be less than max. one");
     1404                return;
     1405            }
     1406            if (vmin <= 0) {
     1407                this.msgWindow.error("Non-positive scale values are not allowed");
     1408                return;
     1409            }
    14021410           
    14031411            var x_au  = new Array;
Note: See TracChangeset for help on using the changeset viewer.