[QGIS Commit] r9640 - trunk/qgis/src/core/composer
svn_qgis at osgeo.org
svn_qgis at osgeo.org
Sat Nov 15 09:13:19 EST 2008
Author: mhugent
Date: 2008-11-15 09:13:19 -0500 (Sat, 15 Nov 2008)
New Revision: 9640
Modified:
trunk/qgis/src/core/composer/qgscomposerpicture.cpp
Log:
fix bug with background color of composer picture
Modified: trunk/qgis/src/core/composer/qgscomposerpicture.cpp
===================================================================
--- trunk/qgis/src/core/composer/qgscomposerpicture.cpp 2008-11-15 10:29:31 UTC (rev 9639)
+++ trunk/qgis/src/core/composer/qgscomposerpicture.cpp 2008-11-15 14:13:19 UTC (rev 9640)
@@ -101,6 +101,9 @@
mMode = Unknown;
}
+ //mImage = QImage(mImage.width(), mImage.height(), QImage::Format_ARGB32 );
+ //setSceneRect
+
QFileInfo sourceFileInfo( mSourceFile );
QString sourceFileSuffix = sourceFileInfo.suffix();
if ( sourceFileSuffix.compare( "svg", Qt::CaseInsensitive ) == 0 )
@@ -133,6 +136,11 @@
mMode = Unknown;
}
}
+
+ if(mMode != Unknown) //make sure we start with a new QImage
+ {
+ setSceneRect(QRectF(transform().dx(), transform().dy(), rect().width(), rect().height()));
+ }
emit settingsChanged();
}
More information about the QGIS-commit
mailing list