Quantcast
Channel: MapWinGIS ActiveX Map and GIS Component
Viewing all articles
Browse latest Browse all 2341

Closed Issue: User Defined Point Rotation Issue [20901]

$
0
0
When attempting to put a new value for point rotation, I receive the "Invalid Parameter", and found that the range was not working... Looked at the code in "ShapeDrawingOptions.cpp" and found the code below... Notice the range that is allowed (above 360, or below -360):
 
STDMETHODIMP CShapeDrawingOptions::put_PointRotation (double newVal)
{
AFX_MANAGE_STATE(AfxGetStaticModuleState());
if (newVal > 360.0 || newVal < -360.0)
{
m_options.rotation = newVal;
}
else
{
ErrorMessage(tkINVALID_PARAMETER_VALUE);
}
return S_OK;
}
 
Should that if line be:
if (newVal >= -360.0 || newVal <= 360.0)
 
I verified by using 700.0 and it allowed me to enter that value.
Comments: The fix was made as discussed and is still there in current trunk.

Viewing all articles
Browse latest Browse all 2341

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>