You know that it was probably intended as a compliment?
I can understand why you wouldn't take it as such, but it just highlights a problem with using online forums. Something that probably sounded fine in their head came across as crass and sexist when written down.
Did you respond and tell them that you found it inappropriate? He (I'm assuming it's a guy) might not realise there's anything wrong with a comment like that.