[QGIS-trac] Re: [Quantum GIS] #1103: split feature - Bug in copy attributes

Quantum GIS qgis at qgis.org
Wed Jun 4 12:03:11 EDT 2008


#1103: split feature - Bug in copy attributes
--------------------------------------------------------------+-------------
        Reporter:  beltegeuse                                 |         Owner:  beltegeuse                     
            Type:  bug                                        |        Status:  assigned                       
        Priority:  critical: causes crash or data corruption  |     Milestone:  Version 1.0                    
       Component:  Vectors                                    |       Version:  HEAD                           
      Resolution:                                             |      Keywords:  split, feature, attribute, copy
Platform_version:                                             |      Platform:  All                            
        Must_fix:  Yes                                        |   Status_info:  1                              
--------------------------------------------------------------+-------------
Changes (by beltegeuse):

  * status:  new => assigned
  * owner:  nobody => beltegeuse

Comment:

 it's link with QgsGeometryMap. QgsGeometryMap bug when featureId is
 negative. To have a different issue :

 In qgsvectorlayer.cpp :
 in splitfeature fucntion :
 remplace :
 {{{
 mChangedGeometries.insert(select_it->featureId(),
 *(select_it->geometry()));
 }}}

 by :

 {{{
 if(select_it->featureId()<0)
 {

 }
 else
 {
  mChangedGeometries.insert(select_it->featureId(),
 *(select_it->geometry()));
 }
 }}}

-- 
Ticket URL: <http://trac.osgeo.org/qgis/ticket/1103#comment:1>
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