Skip to content
Permalink
Browse files
Disable composer svg cash if dpi is different. Fix for bug #2085
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@12097 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Nov 13, 2009
1 parent bc011d9 commit 83727567f3648b0d8b79d6eac14188262e5db239
Showing with 6 additions and 1 deletion.
  1. +6 −1 src/core/composer/qgscomposerpicture.cpp
@@ -57,6 +57,11 @@ void QgsComposerPicture::paint( QPainter* painter, const QStyleOptionGraphicsIte
drawBackground( painter );

int newDpi = ( painter->device()->logicalDpiX() + painter->device()->logicalDpiY() ) / 2;
if ( newDpi != mCachedDpi )
{
mSvgCacheUpToDate = false;
}

if ( mMode != Unknown )
{
double rectPixelWidth = rect().width() * newDpi / 25.4;
@@ -225,7 +230,7 @@ bool QgsComposerPicture::imageSizeConsideringRotation( double& width, double& he
return false;
}
#if 0
if(!cornerPointOnRotatedAndScaledRect(x4, y4, width, height))
if ( !cornerPointOnRotatedAndScaledRect( x4, y4, width, height ) )
{
return false;
}

0 comments on commit 8372756

Please sign in to comment.