Skip to content
Permalink
Browse files

Fix transform context not copied with render context copies

  • Loading branch information
nyalldawson committed Dec 18, 2017
1 parent 6d069e8 commit 1c7e1402632d3127178d265b063280f42987be0f
Showing with 9 additions and 0 deletions.
  1. +9 −0 src/core/qgsrendercontext.cpp
@@ -55,6 +55,10 @@ QgsRenderContext::QgsRenderContext( const QgsRenderContext &rh )
, mFeatureFilterProvider( rh.mFeatureFilterProvider ? rh.mFeatureFilterProvider->clone() : nullptr )
, mSegmentationTolerance( rh.mSegmentationTolerance )
, mSegmentationToleranceType( rh.mSegmentationToleranceType )
, mTransformContext( rh.mTransformContext )
#ifdef QGISDEBUG
, mHasTransformContext( rh.mHasTransformContext )
#endif
{
}

@@ -77,6 +81,11 @@ QgsRenderContext &QgsRenderContext::operator=( const QgsRenderContext &rh )
mSegmentationTolerance = rh.mSegmentationTolerance;
mSegmentationToleranceType = rh.mSegmentationToleranceType;
mDistanceArea = rh.mDistanceArea;
mTransformContext = rh.mTransformContext;
#ifdef QGISDEBUG
mHasTransformContext = rh.mHasTransformContext;
#endif

return *this;
}

0 comments on commit 1c7e140

Please sign in to comment.
You can’t perform that action at this time.