[QGIS-trac] [Quantum GIS] #1233: EPSG code assigned to temporary object

Quantum GIS qgis at qgis.org
Thu Aug 21 18:28:11 EDT 2008


#1233: EPSG code assigned to temporary object
------------------------------------------------+---------------------------
   Reporter:  mloskot                           |              Owner:  nobody       
       Type:  bug                               |             Status:  new          
   Priority:  major: does not work as expected  |          Milestone:  Version 1.0.0
  Component:  Plugins                           |            Version:  HEAD         
   Keywords:  wfs epsg                          |   Platform_version:  10.5         
   Platform:  OS X                              |           Must_fix:  No           
Status_info:  0                                 |  
------------------------------------------------+---------------------------
 In file
 [source:trunk/qgis/src/plugins/wfs/qgswfssourceselect.cpp at 9108#L100
 qgswfssourceselect.cpp], lines 100-105 look like this:

 {{{
 int ProjectCRS = -1;
 if(projectRefSys.isValid())
 {
    long ProjectCRS = projectRefSys.epsg();
 }
 }}}

 The value returned from epsg() function is assigned to temporary
 ProjectCRS - local in scope bounded by parenthesis - that overrides the
 ProjectCRS variable assigned in outer scope.

 It's very likely a logical bug.

-- 
Ticket URL: <http://trac.osgeo.org/qgis/ticket/1233>
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