Bug #2962

Double draw of layer when selecting and deselecting legend layer items

Added by Jeremy Palmer over 2 years ago. Updated about 2 years ago.

Status:Closed Start Date:
Priority:Low Due date:
Assigned to:sunilkcube - % Done:

0%

Category:MapCanvas
Target version:Version 1.7.0
Platform:Windows Patch supplied:
Platform version:WinXP SP3 Affected version:master
Status info:0 Causes crash or corruption:No
Resolution:worksforme

Description

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?

History

Updated by sunilkcube - about 2 years ago

  • Status changed from New to In Progress

Updated by sunilkcube - about 2 years ago

Hi Everyone,

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 ?

Updated by Jeremy Palmer about 2 years ago

Maybe the issue has been fix in trunk? I definitely didn't have the overview panel enabled when I was doing testing with 1.5.

Updated by sunilkcube - about 2 years ago

  • Status changed from In Progress to Closed
  • Resolution set to invalid

Updated by sunilkcube - about 2 years ago

  • Status changed from Closed to Feedback
  • Resolution deleted (invalid)

Updated by sunilkcube - about 2 years ago

  • Status changed from Feedback to Closed
  • Resolution set to worksforme

Also available in: Atom PDF