Inherited mutual funds now i am getting a 1099 DIv but I did not take any money and I reinvested dividends

I just need to know if I need to enter this 1099 DIV as they are saying I had capital gains as well.