File tree 1 file changed +9
-0
lines changed
1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -205,6 +205,15 @@ void QgsMapRender::render(QPainter* painter)
205
205
std::cout << " QgsMapRender::render: at layer item '" << (*li).toLocal8Bit ().data () << " '." << std::endl;
206
206
#endif
207
207
208
+ // This call is supposed to cause the progress bar to
209
+ // advance. However, it seems that updating the progress bar is
210
+ // incompatible with having a QPainter active (the one that is
211
+ // passed into this function), as Qt produces a number of errors
212
+ // when try to do so. I'm (Gavin) not sure how to fix this, but
213
+ // added these comments and debug statement to help others...
214
+ std::cerr << " If there is a QPaintEngine here, it is caused by an emit "
215
+ " call just after line " << __LINE__ << " in file " << __FILE__ << " .\n " ;
216
+
208
217
emit setProgress (myRenderCounter++,layers.size ());
209
218
QgsMapLayer *ml = QgsMapLayerRegistry::instance ()->mapLayer (*li);
210
219
You can’t perform that action at this time.
0 commit comments