Showing with 5 additions and 4 deletions.
  1. +1 −1 src/app/qgisapp.cpp
  2. +2 −1 src/gui/qgsmapcanvasmap.cpp
  3. +2 −2 tests/bench/qgsbench.cpp
2 changes: 1 addition & 1 deletion src/app/qgisapp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1668,7 +1668,7 @@ void QgisApp::createOverview()
QSettings mySettings;
// Anti Aliasing enabled by default as of QGIS 1.7
mMapCanvas->enableAntiAliasing( mySettings.value( "/qgis/enable_anti_aliasing", true ).toBool() );
mMapCanvas->useImageToRender( mySettings.value( "/qgis/use_qimage_to_render", false ).toBool() );
mMapCanvas->useImageToRender( mySettings.value( "/qgis/use_qimage_to_render", true ).toBool() );

int action = mySettings.value( "/qgis/wheel_action", 0 ).toInt();
double zoomFactor = mySettings.value( "/qgis/zoom_factor", 2 ).toDouble();
Expand Down
3 changes: 2 additions & 1 deletion src/gui/qgsmapcanvasmap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ QgsMapCanvasMap::QgsMapCanvasMap( QgsMapCanvas* canvas )
setZValue( -10 );
setPos( 0, 0 );
resize( QSize( 1, 1 ) );
mUseQImageToRender = false;
mUseQImageToRender = true;
}

void QgsMapCanvasMap::paint( QPainter* p, const QStyleOptionGraphicsItem*, QWidget* )
Expand Down Expand Up @@ -60,6 +60,7 @@ void QgsMapCanvasMap::setPanningOffset( const QPoint& point )

void QgsMapCanvasMap::render()
{
QgsDebugMsg( QString( "mUseQImageToRender = %1" ).arg( mUseQImageToRender ) );
if ( mUseQImageToRender )
{
// use temporary image for rendering
Expand Down
4 changes: 2 additions & 2 deletions tests/bench/qgsbench.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -210,9 +210,9 @@ void QgsBench::render()
mLogMap.insert( "iterations", mTimes.size() );

// Calc stats: user, sys, total
double avg[3], min[3], max[3];
double maxdev[3], min[3], max[3];
double stdev[3] = {0.};
double maxdev[3] = {0.};
double avg[3] = {0.};

for ( int t = 0; t < 3; t++ )
{
Expand Down