Skip to content

Commit 2e93a04

Browse files
author
mhugent
committedNov 13, 2009
Disable composer svg cash if dpi is different. Fix for bug #2085
git-svn-id: http://svn.osgeo.org/qgis/trunk@12097 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 323ab6e commit 2e93a04

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed
 

‎src/core/composer/qgscomposerpicture.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,11 @@ void QgsComposerPicture::paint( QPainter* painter, const QStyleOptionGraphicsIte
5757
drawBackground( painter );
5858

5959
int newDpi = ( painter->device()->logicalDpiX() + painter->device()->logicalDpiY() ) / 2;
60+
if ( newDpi != mCachedDpi )
61+
{
62+
mSvgCacheUpToDate = false;
63+
}
64+
6065
if ( mMode != Unknown )
6166
{
6267
double rectPixelWidth = rect().width() * newDpi / 25.4;
@@ -225,7 +230,7 @@ bool QgsComposerPicture::imageSizeConsideringRotation( double& width, double& he
225230
return false;
226231
}
227232
#if 0
228-
if(!cornerPointOnRotatedAndScaledRect(x4, y4, width, height))
233+
if ( !cornerPointOnRotatedAndScaledRect( x4, y4, width, height ) )
229234
{
230235
return false;
231236
}

0 commit comments

Comments
 (0)
Please sign in to comment.