Changes between Initial Version and Version 4 of Ticket #1175


Ignore:
Timestamp:
Jan 4, 2010, 8:28:19 AM (14 years ago)
Author:
brucedechant
Comment:

Fixed in trunk. Submission r4461

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #1175

    • Property Status newclosed
    • Property Resolutionfixed
    • Property External ID1289006
    • Property Milestone2.2
  • Ticket #1175 – Description

    initial v4  
    1 a.Assume we have a MapDefinition called “Library://Test/Default.MapDefinition”;[[BR]]
    2 b.We create the map using the following code:[[BR]]
     1 * Assume we have a !MapDefinition called “Library://Test/Default.MapDefinition”
     2 * We create the map using the following code:
    33
    44{{{
     
    88}}}
    99
    10 c.In other code, we want to use this map, so we use this code:[[BR]]
     10 * In other code, we want to use this map, so we use this code:
    1111
    1212{{{ 
     
    1515}}}
    1616
    17 d.Now the Name property for map in step c) is supposed to be “Default1234”. However, you’ll find it’s still “Default”, the name of map definition, not the name of map.[[BR]]
     17 * Now the Name property for map in step c) is supposed to be “Default1234”. However, you’ll find it’s still “Default”, the name of map definition, not the name of map.
    1818
    19 If you open the code of “\\trunk\MgDev\Common\MapGuideCommon\MapLayer\Map.cpp”, you’ll find the line 504 and 505 is like this:[[BR]]
     19If you open the code of “\\trunk\!MgDev\Common\!MapGuideCommon\!MapLayer\Map.cpp”, you’ll find the line 504 and 505 is like this:
    2020
    2121{{{
     
    2424}}}
    2525             
    26 However, MgResource::Open will use the name of map definition, not the name of map to replace the value of m_name.[[BR]]
    27 So we should put “m_name = mapName;” behind “MgResource::Open”.
     26However, MgResource::Open() will use the name of map definition, not the name of map to replace the value of m_name.
     27So we should put “m_name = mapName;” behind “MgResource::Open()”.