Commit 9c997d2 wonder
committed
1 parent 6f018ba commit 9c997d2 Copy full SHA for 9c997d2
File tree 2 files changed +12
-0
lines changed
2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -265,6 +265,15 @@ double QgsSymbolV2RenderContext::outputPixelSize( double size ) const
265
265
return size * QgsSymbolLayerV2Utils::pixelSizeScaleFactor ( mRenderContext , mOutputUnit );
266
266
}
267
267
268
+ QgsSymbolV2RenderContext& QgsSymbolV2RenderContext::operator =( const QgsSymbolV2RenderContext& )
269
+ {
270
+ // This is just a dummy implementation of assignment.
271
+ // sip 4.7 generates a piece of code that needs this function to exist.
272
+ // It's not generated automatically by the compiler because of
273
+ // mRenderContext member which is a reference (and thus can't be changed).
274
+ Q_ASSERT (false );
275
+ return *this ;
276
+ }
268
277
269
278
// /////////////////
270
279
Original file line number Diff line number Diff line change @@ -118,6 +118,9 @@ class CORE_EXPORT QgsSymbolV2RenderContext
118
118
double outputLineWidth ( double width ) const ;
119
119
double outputPixelSize ( double size ) const ;
120
120
121
+ // workaround for sip 4.7. Don't use assignment - will fail with assertion error
122
+ QgsSymbolV2RenderContext& operator =( const QgsSymbolV2RenderContext& );
123
+
121
124
private:
122
125
QgsRenderContext& mRenderContext ;
123
126
QgsSymbolV2::OutputUnit mOutputUnit ;
You can’t perform that action at this time.
0 commit comments