[QGIS-trac] [Quantum GIS] #2962: Double draw of layer when selecting and deselecting legend layer items

Quantum GIS qgis at qgis.org
Sun Aug 22 19:41:27 EDT 2010


#2962: Double draw of layer when selecting and deselecting legend layer items
------------------------------------------------+---------------------------
   Reporter:  jpalmer                           |              Owner:  nobody       
       Type:  bug                               |             Status:  new          
   Priority:  major: does not work as expected  |          Milestone:  Version 1.6.0
  Component:  MapCanvas                         |            Version:  1.5.0        
   Keywords:                                    |   Platform_version:  WinXP SP3    
   Platform:  Windows                           |           Must_fix:  Yes          
Status_info:  0                                 |  
------------------------------------------------+---------------------------
 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?

-- 
Ticket URL: <https://trac.osgeo.org/qgis/ticket/2962>
Quantum GIS <http://qgis.org>
Quantum GIS is an Open Source GIS viewer/editor supporting OGR, PostGIS, and GRASS formats


More information about the QGIS-trac mailing list