[fusion-trac] #326: Query: One error happened once completing
the Polygon drawn in previous Query condition.
Fusion
trac_fusion at osgeo.org
Fri Dec 11 05:08:47 EST 2009
#326: Query: One error happened once completing the Polygon drawn in previous
Query condition.
---------------------+------------------------------------------------------
Reporter: jennyhe | Owner: madair
Type: defect | Status: closed
Priority: P2 | Milestone: Future
Component: Widgets | Version: 1.1.1
Severity: Major | Resolution: fixed
Keywords: | External_id: 1277664
State: New | Browser: All
Os: All |
---------------------+------------------------------------------------------
Comment (by christinebao):
The key point of this defect is:[[BR]]
1. Start draw polygon, but not double click to finish it.[[BR]]
2. Draw a rectangle.[[BR]]
3. Continue step 1 to finish the polygon.
It will call MapGuideViewerApi.js:[[BR]]
{{{
function mgApiDeactivate() {
mgApiActiveControl.deactivate();
mgApiActiveControl = null;
if (mgApiActiveWidget) {
var Fusion = window.top.Fusion;
var mapWidget = Fusion.getWidgetById(mgApiMapWidgetId);
mapWidget.activateWidget(mgApiActiveWidget);
mgApiActiveWidget = null;
}
}
}}}
[[BR]]
And in this case mgApiActiveControl is null, thus cause the defect.
--
Ticket URL: <http://trac.osgeo.org/fusion/ticket/326#comment:2>
Fusion <http://trac.osgeo.org/fusion>
Fusion is a web-mapping application development framework for MapServer and MapGuide OS.
More information about the fusion-trac
mailing list