Changeset 7991 in ntrip


Ignore:
Timestamp:
Jul 28, 2016, 10:32:40 AM (8 years ago)
Author:
stuerze
Message:

minor adaptations to allow the successful comilation of BNC on a Rasperry Pi

Location:
branches/BNC_2.12/qwtpolar
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/BNC_2.12/qwtpolar/qwt_polar_curve.cpp

    r4272 r7991  
    434434    if ( !clipRect.isEmpty() )
    435435    {
    436         double off = qCeil( qMax( 1.0, painter->pen().widthF() ) );
     436        double off = qCeil( qMax(qreal(1.0), painter->pen().widthF() ) );
    437437        clipRect = clipRect.toRect().adjusted( -off, -off, off, off );
    438438        polyline = QwtClipper::clipPolygonF( clipRect, polyline );
  • branches/BNC_2.12/qwtpolar/qwt_polar_layout.cpp

    r4272 r7991  
    279279        // half of the available space.
    280280
    281         dim = qMin( hint.width(), rect.width() * d_data->legendRatio );
     281        dim = qMin( hint.width(), qreal(rect.width() * d_data->legendRatio) );
    282282
    283283        if ( !( options & IgnoreScrollbars ) )
     
    294294    else
    295295    {
    296         dim = qMin( hint.height(), rect.height() * d_data->legendRatio );
     296        dim = qMin( hint.width(), qreal(rect.width() * d_data->legendRatio) );
    297297        dim = qMax( dim, d_data->layoutData.legend.hScrollBarHeight );
    298298    }
Note: See TracChangeset for help on using the changeset viewer.