Experts already recommend eating at least five portions of fruit and veg a day for good health
People who are genetically susceptible to heart disease can lower their risk by eating plenty of fruit and raw vegetables, a study suggests.
Healthy diets appeared to weaken its effect.
The US researchers investigated more than 27,000 people for their work.
The findings were published in Plos Medicine journal.
These participants came from from around the globe, including Europe, China and Latin America.
The results suggest that individuals with high risk 9p21 gene versions who consumed a diet packed with raw vegetables, fruits and berries had a similar risk of heart attack as those with a low-risk variant of the same gene.
Researcher Prof Sonia Anand, of McMaster University, said: "Our results support the public health recommendation to consume more than five servings of fruits or vegetables as a way to promote good health."
The scientists, who also included staff from McGill University, say they now need to do more work to establish how diet might have this effect on genes.
Judy O'Sullivan of the British Heart Foundation said the findings should serve as a reminder that while lifestyle and genes could increase heart risk, the way the two interacted with each other was also very important.
"The relationship between the two is often very complicated and we don't yet have all the answers, but the message appears to be very simple - eating lots of fruit and vegetables is great news for our heart health."
Five a day
Foods that count:
Fresh fruit and vegetables
Frozen fruit and vegetables
Tinned or canned fruit and vegetables
Fruit and vegetables cooked in dishes such as soups, stews or pasta dishes
A glass (150ml) of unsweetened 100% fruit or vegetable juice
Beans and pulses; these only count as one portion a day, no matter how many you eat
Men who bottle up their anger at being unfairly treated at work are up to five times more likely to suffer a heart attack, or even die from one, than those who let their frustratio
People who work three hours or more of overtime per day run a 60-percent higher risk of bad heart problems compared to those who work regular hours, a study published in the Europe