Index: branches/BNC_2.12/qwtpolar/qwt_polar_curve.cpp
===================================================================
--- branches/BNC_2.12/qwtpolar/qwt_polar_curve.cpp	(revision 7989)
+++ branches/BNC_2.12/qwtpolar/qwt_polar_curve.cpp	(revision 7991)
@@ -434,5 +434,5 @@
     if ( !clipRect.isEmpty() )
     {
-        double off = qCeil( qMax( 1.0, painter->pen().widthF() ) );
+        double off = qCeil( qMax(qreal(1.0), painter->pen().widthF() ) );
         clipRect = clipRect.toRect().adjusted( -off, -off, off, off );
         polyline = QwtClipper::clipPolygonF( clipRect, polyline );
Index: branches/BNC_2.12/qwtpolar/qwt_polar_layout.cpp
===================================================================
--- branches/BNC_2.12/qwtpolar/qwt_polar_layout.cpp	(revision 7989)
+++ branches/BNC_2.12/qwtpolar/qwt_polar_layout.cpp	(revision 7991)
@@ -279,5 +279,5 @@
         // half of the available space.
 
-        dim = qMin( hint.width(), rect.width() * d_data->legendRatio );
+        dim = qMin( hint.width(), qreal(rect.width() * d_data->legendRatio) );
 
         if ( !( options & IgnoreScrollbars ) )
@@ -294,5 +294,5 @@
     else
     {
-        dim = qMin( hint.height(), rect.height() * d_data->legendRatio );
+        dim = qMin( hint.width(), qreal(rect.width() * d_data->legendRatio) );
         dim = qMax( dim, d_data->layoutData.legend.hScrollBarHeight );
     }
