Changeset 9383 in ntrip for trunk/BNC/qwt/qwt_text_engine.cpp
- Timestamp:
- Mar 19, 2021, 9:15:03 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/qwt/qwt_text_engine.cpp
r8127 r9383 86 86 87 87 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; 96 97 } 97 98 … … 116 117 for ( row = 0; row < img.height(); row++ ) 117 118 { 118 const QRgb *line = reinterpret_cast<const QRgb *>( 119 const QRgb *line = reinterpret_cast<const QRgb *>( 119 120 img.scanLine( row ) ); 120 121
Note:
See TracChangeset
for help on using the changeset viewer.