leading people

Today somebody in a leading position made a kind of disparaging comment because I was wearing a Rails Girls Berlin shirt.
I didn’t react in the first place when he said this in a round of 5-6 people, but I was pissed afterwards. It felt like it’s worth denoting I wear something which has the word Girls on it.
I was so annoyed by this because from a person in a leading position I expect some kind of professionalism and not comments about somebody’s clothing, appearance, origin, whatever.
It’s not making jokes of others which identifies a leading person but the ability to keep everybody in the team and to make sure everybody feels welcome, safe and comfortable.
Even when something like this situation occurs, I want to be able to go to this person and talk about what I didn’t like and how to prevent this next time.