Jump to content
Mr. Bodo Hasubek

Moving to FFW 3.0.1: Type issue with Offset.setEqualCoordinates

Recommended Posts

In Framework 2.x I used a command like the following without any problem:

 

hull.addoffset(brokenOffset.setEqualCoordinates(0,newXPos))

 

where hull is of Foffsetgroup type, brokenOffset of Foffset type and newXPos some double value.

 

This command does not work in FFW 3.0.1 anymore ("Could not resolve command"), because it turned out that setEqualCoordinates() no longer returns an FOffset object, but an FPolyLine object. Knowing that the problem is easily solved using a type cast:

 

hull.addoffset(brokenOffset.setEqualCoordinates(0,newXPos)).castTo(FOffset))

 

I can not say if that's a wanted change or a bug, but it's esily solved anyhow.

 

Bodo

Share this post


Link to post
Share on other sites

Hi Bodo,

 

I think it is not "wrong" but it breaks usability ;-)

So we included an implicit cast from FPolyLine to FOffset to get rid of ".castTo(FOffset)" (next maintainance release 3.0.2).

 

Thanks for finding it!

 

Cheers,

Stefan

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...