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.
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.