Changeset 280:dd27e12fb322 for source


Ignore:
Timestamp:
Aug 15, 2011, 8:00:25 PM (13 years ago)
Author:
Evgeny Stambulchik <Evgeny.Stambulchik@…>
Branch:
default
Phase:
public
Message:

Make sure condition n_u > n_l holds during update.

File:
1 edited

Legend:

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

    r279 r280  
    438438            this.gui_locked = true;
    439439           
    440             // make sure GUI does not remain locked forever...
     440            // Make sure GUI does not remain locked forever...
    441441            try {
    442442                if (this.prefs.currentConfigName) {
     
    462462                this.gui_B.setNumValue(this.plasma.B);
    463463
    464                 this.gui_n_u.setValue(this.plasma.n_u);
    465                 this.gui_n_l.setValue(this.plasma.n_l);
     464                // Make sure n_u > n_l holds during update
     465                if (this.gui_n_l.getValue() >= this.plasma.n_u) {
     466                    this.gui_n_l.setValue(this.plasma.n_l);
     467                    this.gui_n_u.setValue(this.plasma.n_u);
     468                } else {
     469                    this.gui_n_u.setValue(this.plasma.n_u);
     470                    this.gui_n_l.setValue(this.plasma.n_l);
     471                }
    466472
    467473                // Update the currently selected entity
Note: See TracChangeset for help on using the changeset viewer.