Bug report #2962
Double draw of layer when selecting and deselecting legend layer items
|Affected QGIS version:||Regression?:||No|
|Operating System:||Windows||Easy fix?:||No|
|Pull Request or Patch supplied:||Resolution:||worksforme|
|Crashes QGIS or corrupts data:||Copied to github as #:||13022|
On WinXP SP3 using QGIS 1.5.0 I get two refreshes of the mapcanvas when selecting and deselecting layers.
On line 1541 of qgslegend.cpp there is a call to render the mapcanvas. However there is also a call to updateMapCanvasLayerSet() on line 1549. Should call to mMapCanvas->setRenderFlag( true ) on line 1541 be removed to stop refreshing the canvas twice?
#2 Updated by sunilkcube - almost 12 years ago
Can anyone give suggestions ? The bug says layer is drawn twice. But the layer is drawn twice in the mapcanvas only when the overview panel is enabled, if the overview panel is disabled then enabling a layer will draw the layer in mapcanvas only once. So is this a bug really ?