Deductions & credits

I sold a second home in Oregon.  I filed the Oregon Non resident taxes for the capital gain.  When doing my California taxes the taxes i paid in Oregon was not credited to my California taxes.