The Cardiff striker's long-range strike appeared to come back off the underside of the bar but referee Andy D'Urso judged the ball had crossed the line.
Barry Fuller signalled the home side's positive intent from the off with a 30-yard strike but unfortunately for the Gills it was a good 15m over the bar.