Changeset 9383 in ntrip for trunk/BNC/qwt/qwt_text_engine.cpp


Ignore:
Timestamp:
Mar 19, 2021, 9:15:03 AM (3 years ago)
Author:
stoecker
Message:

update to qwt verion 6.1.1 to fix build with newer Qt5

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/qwt/qwt_text_engine.cpp

    r8127 r9383  
    8686
    8787        QMap<QString, int>::const_iterator it =
    88             d_ascentCache.find( fontKey );
    89         if ( it == d_ascentCache.end() )
    90         {
    91             int ascent = findAscent( font );
    92             it = d_ascentCache.insert( fontKey, ascent );
    93         }
    94 
    95         return ( *it );
     88            d_ascentCache.constFind( fontKey );
     89
     90        if ( it != d_ascentCache.constEnd() )
     91            return *it;
     92
     93        const int ascent = findAscent( font );
     94        d_ascentCache.insert( fontKey, ascent );
     95
     96        return ascent;
    9697    }
    9798
     
    116117        for ( row = 0; row < img.height(); row++ )
    117118        {
    118             const QRgb *line = reinterpret_cast<const QRgb *>( 
     119            const QRgb *line = reinterpret_cast<const QRgb *>(
    119120                img.scanLine( row ) );
    120121
Note: See TracChangeset for help on using the changeset viewer.