The former Scottish Labour leader made the revelation when discussing LGBT rights.