Changeset 4a0e0623 in git


Ignore:
Timestamp:
18/02/18 03:45:59 (19 months ago)
Author:
Olly Betts <olly@…>
Branches:
master, stereo, travis-osx
Children:
dfab830
Parents:
5e46ae2
Message:

Reliably disable scale bar in perspective view

This is supposed to happen (because the scale across the screen
varies in perspective view) but actually the scale bar stayed around
until an update was forced for another reason.

Spotted thanks to Pedro Silva Pinto.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/gfxcore.cc

    r5e46ae2 r4a0e0623  
    12151215void GfxCore::DrawScaleBar()
    12161216{
    1217     // Draw the scalebar.
    1218     if (GetPerspective()) return;
    1219 
    12201217    // Calculate how many metres of survey are currently displayed across the
    12211218    // screen.
     
    30413038
    30423039    // Draw scalebar.
    3043     if (m_Scalebar) {
     3040    if (m_Scalebar && !GetPerspective()) {
    30443041        DrawList2D(LIST_SCALE_BAR, 0, 0, 0);
    30453042    }
Note: See TracChangeset for help on using the changeset viewer.