TopLeftReferencePoint bug?

Hi!

Something strange is happening here with this simple code:

[lua]mainGroup:setReferencePoint( display.TopLeftReferencePoint )
print(display.screenOriginY)
mainGroup.y = display.screenOriginY
print(mainGroup.y)[/lua]

It prints:

-0  
6.2821681519069e-039  

How it is possible? If I change it to TopReferencePoint seems to work fine.
[import]uid: 46216 topic_id: 15499 reply_id: 315499[/import]

Insert a child display object into the group before setting the group’s reference point. It’s weird, but it’ll probably work. [import]uid: 70134 topic_id: 15499 reply_id: 57273[/import]

OK, thanks, I’ll try it! [import]uid: 46216 topic_id: 15499 reply_id: 57377[/import]

Thomas is correct. [import]uid: 84637 topic_id: 15499 reply_id: 57397[/import]