Skip to content
Permalink
Browse files

more qreal vs double issues for android

  • Loading branch information
mbernasocchi committed Apr 10, 2013
1 parent 34adbe7 commit 76f8d602730363f13465ff90aedc3d1d39d77e85
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/core/composer/qgscomposerlegend.cpp
@@ -374,7 +374,7 @@ QgsComposerLegend::Nucleon QgsComposerLegend::drawSymbolItem( QgsComposerLegendI
if ( painter ) painter->setPen( mFontColor );

//double labelX = point.x() + labelXOffset; // + mIconLabelSpace;
double labelX = point.x() + qMax( symbolSize.width(), labelXOffset );
double labelX = point.x() + qMax( (double) symbolSize.width(), labelXOffset );

// Vertical alignment of label with symbol:
// a) label height < symbol heigh: label centerd with symbol
@@ -407,7 +407,7 @@ QgsComposerLegend::Nucleon QgsComposerLegend::drawSymbolItem( QgsComposerLegendI
nucleon.symbolSize = symbolSize;
nucleon.labelSize = labelSize;
//QgsDebugMsg( QString( "symbol height = %1 label height = %2").arg( symbolSize.height()).arg( labelSize.height() ));
double width = qMax( symbolSize.width(), labelXOffset ) + labelSize.width();
double width = qMax( (double) symbolSize.width(), labelXOffset ) + labelSize.width();
double height = qMax( symbolSize.height(), labelSize.height() );
nucleon.size = QSizeF( width, height );
return nucleon;

0 comments on commit 76f8d60

Please sign in to comment.
You can’t perform that action at this time.