[Bug 1853] New: [Chameleon-Core]Invalid map size in CWCInitializeMap when the current state and map are not set

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Bug 1853] New: [Chameleon-Core]Invalid map size in CWCInitializeMap when the current state and map are not set

bugzilla-daemon (Bugzilla)-13
http://bugzilla.maptools.org/show_bug.cgi?id=1853

           Summary: [Chameleon-Core]Invalid map size in CWCInitializeMap
                    when the current state and map are not set
           Product: Chameleon
           Version: 2.6
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core
        AssignedTo: [hidden email]
        ReportedBy: [hidden email]


When a Chameleon application is used as a service instance, a new map object is
created in CWCInitializeMap with an invalid size (1).  This happens because
msMapSetExtent (mapobject.c) calls msAdjustExtent (maputil.c) which does a
width-1 and height-1 calculation (see below).

  ox = MS_MAX(((width-1) - (rect->maxx - rect->minx)/cellsize)/2,0); /* these
were width-1 and height-1 */
  oy = MS_MAX(((height-1) - (rect->maxy - rect->miny)/cellsize)/2,0);



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


Please do NOT reply to this email, use the link above instead to
login to bugzilla and submit your comment. Any email reply to this
address will be lost.
_______________________________________________
Chameleon-dev mailing list
[hidden email]
http://lists.maptools.org/mailman/listinfo/chameleon-dev
Loading...