Montana non-resident capital gains

I am filing as a  non-resident in Montana.  I sold land in Montana (Capital gain).  I have a non Montana capital loss tat reduces the Montana gain to $0.  When going through the review for "Montana" income The program shows $0 for capital gains.  Do I still need to report the gain as Montana Income?