Dividends and capital gains/losses are two different things, and reported on different lines.
The thing I'm confused about in the OP is that the poster said they received a 1099 B, but did not sell anything. Does that make sense? I don't know enough about 1099 B, and need to learn more, obviously.