[mapguide-trac] #344: MgPropertyCollection:: Remove() returns true
when trying to remove a non-existing element
MapGuide Open Source
trac_mapguide at osgeo.org
Tue Nov 27 01:42:55 EST 2007
#344: MgPropertyCollection:: Remove() returns true when trying to remove a non-
existing element
-----------------------+----------------------------------------------------
Reporter: jiab | Owner: Tom Fukushima
Type: defect | Status: new
Priority: medium | Milestone:
Component: General | Version:
Severity: minor | Keywords: Remove, MgPropertyCollection
External_id: 985061 |
-----------------------+----------------------------------------------------
Step to recur:[[BR]]
1. Construct a MgPropertyCollection object, and a MgBooleanProperty
object.[[BR]]
2. Call Remove() using the MgBooleanProperty object as
argument.[[BR]]
Sample code: [[BR]]
MgPropertyCollection props= new MgPropertyCollection();[[BR]]
MgBooleanProperty boolProp = new MgBooleanProperty("prop1", true);[[BR]]
bool result = props.Remove(boolProp);[[BR]]
Expect result: false[[BR]]
Actual result: true
--
Ticket URL: <http://trac.osgeo.org/mapguide/ticket/344>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals
More information about the mapguide-trac
mailing list