Changeset 355809f in git


Ignore:
Timestamp:
11/03/15 03:13:41 (5 years ago)
Author:
Olly Betts <olly@…>
Branches:
line_contents, master, stereo, travis-osx
Children:
391af6a
Parents:
0a8fad2
Message:

src/gfxcore.cc: Put units below length key (like we do for depth
key) and only show one decimal place on the lengths.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ChangeLog

    r0a8fad2 r355809f  
     1Wed Mar 11 03:12:54 GMT 2015  Olly Betts <olly@survex.com>
     2
     3        * src/gfxcore.cc: Put units below length key (like we do for depth
     4          key) and only show one decimal place on the lengths.
     5
    16Wed Mar 11 03:11:11 GMT 2015  Olly Betts <olly@survex.com>
    27
  • src/gfxcore.cc

    r0a8fad2 r355809f  
    10861086    for (int band = 0; band < num_bands; ++band) {
    10871087        double len = pow(10, LOG_LEN_MAX * band / (num_bands - 1));
    1088         int units = /*m*/424;
    10891088        if (!m_Metric) {
    10901089            len /= METRES_PER_FOOT;
    1091             units = /*ft*/428;
    1092         }
    1093         key_legends[band].Printf(wxT("%.2f%s"), len, wmsg(units));
    1094     }
    1095 
    1096     DrawColourKey(num_bands, wxString(), wxString());
     1090        }
     1091        key_legends[band].Printf(wxT("%.1f"), len);
     1092    }
     1093
     1094    DrawColourKey(num_bands, wxString(), wmsg(m_Metric ? /*m*/424: /*ft*/428));
    10971095}
    10981096
Note: See TracChangeset for help on using the changeset viewer.