[QGIS Commit] r14628 - branches/threading-branch/src/core
svn_qgis at osgeo.org
svn_qgis at osgeo.org
Sat Nov 13 19:25:51 EST 2010
Author: wonder
Date: 2010-11-13 16:25:51 -0800 (Sat, 13 Nov 2010)
New Revision: 14628
Modified:
branches/threading-branch/src/core/qgsrendercontext.cpp
branches/threading-branch/src/core/qgsrendercontext.h
Log:
Fixed crash when reprojecting layers
Modified: branches/threading-branch/src/core/qgsrendercontext.cpp
===================================================================
--- branches/threading-branch/src/core/qgsrendercontext.cpp 2010-11-14 00:05:00 UTC (rev 14627)
+++ branches/threading-branch/src/core/qgsrendercontext.cpp 2010-11-14 00:25:51 UTC (rev 14628)
@@ -31,6 +31,20 @@
}
+QgsRenderContext::QgsRenderContext(const QgsRenderContext& other)
+ : mPainter( 0 ),
+ mCoordTransform( 0 ),
+ mDrawEditingInformation( false ),
+ mForceVectorOutput( false ),
+ mRenderingStopped( false ),
+ mScaleFactor( 1.0 ),
+ mRasterScaleFactor( 1.0 ),
+ mLabelingEngine( NULL )
+{
+ *this = other;
+}
+
+
QgsRenderContext::~QgsRenderContext()
{
delete mCoordTransform;
Modified: branches/threading-branch/src/core/qgsrendercontext.h
===================================================================
--- branches/threading-branch/src/core/qgsrendercontext.h 2010-11-14 00:05:00 UTC (rev 14627)
+++ branches/threading-branch/src/core/qgsrendercontext.h 2010-11-14 00:25:51 UTC (rev 14628)
@@ -36,6 +36,7 @@
{
public:
QgsRenderContext();
+ QgsRenderContext(const QgsRenderContext& other);
~QgsRenderContext();
//getters
More information about the QGIS-commit
mailing list