MapGuide Open Source:  Home |  Download |  Internals

Ticket #344 (closed defect: fixed)

Opened 11 months ago

Last modified 11 months ago

MgPropertyCollection:: Remove() returns true when trying to remove a non-existing element

Reported by: jiab Assigned to: trevorwekel
Priority: medium Milestone: 2.0
Component: General Version:
Severity: minor Keywords: Remove, MgPropertyCollection
Cc: External ID: 985061

Description

Step to recur:

1. Construct a MgPropertyCollection? object, and a MgBooleanProperty? object.

2. Call Remove() using the MgBooleanProperty? object as argument.

Sample code:

MgPropertyCollection? props= new MgPropertyCollection?();

MgBooleanProperty? boolProp = new MgBooleanProperty?("prop1", true);

bool result = props.Remove(boolProp);

Expect result: false

Actual result: true

Change History

11/28/07 17:36:15 changed by trevorwekel

  • status changed from new to assigned.
  • owner changed from Tom Fukushima to trevorwekel.

11/28/07 17:38:52 changed by trevorwekel

  • status changed from assigned to closed.
  • resolution set to fixed.
  • milestone set to 2.0.