Changeset 6eb50ab in git


Ignore:
Timestamp:
08/03/15 02:22:55 (5 years ago)
Author:
Olly Betts <olly@…>
Branches:
line_contents, master, stereo, travis-osx
Children:
fe340a5
Parents:
009a9e4
Message:

src/commands.c: Slightly simplify handling of the units scaling
factor.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ChangeLog

    r009a9e4 r6eb50ab  
     1Sun Mar 08 02:22:33 GMT 2015  Olly Betts <olly@survex.com>
     2
     3        * src/commands.c: Slightly simplify handling of the units scaling
     4          factor.
     5
    16Sun Mar 08 02:21:09 GMT 2015  Olly Betts <olly@survex.com>
    27
  • src/commands.c

    r009a9e4 r6eb50ab  
    14451445      return;
    14461446   }
    1447    if (factor == HUGE_REAL) factor = (real)1.0;
    14481447
    14491448   units = get_units(qmask, fTrue);
     
    14541453      pcs->f_backclino_percent = (units == UNITS_PERCENT);
    14551454
    1456    factor *= factor_tab[units];
     1455   if (factor == HUGE_REAL) {
     1456      factor = factor_tab[units];
     1457   } else {
     1458      factor *= factor_tab[units];
     1459   }
    14571460
    14581461   for (quantity = 0, m = BIT(quantity); m <= qmask; quantity++, m <<= 1)
Note: See TracChangeset for help on using the changeset viewer.