CSU calculation question

Hi, I got a D both semesters during freshman year, but I re-did the class and got an A over summer. It shows as 2 semesters of an A in Naviance grade check. My counselor said that the grade is now replaced with an A in GPA calculations, but I am not sure if it just counts for the highschool gpa or CSUs too. Help? The D still shows in my freshman transcript, but apparently it will be replaced during gpa calculations.

For the CSU GPA calculation, it only uses 10-11th a-g courses so the D’s are on the transcript but not included in the GPA. See link for UC/ CSU GPA. http://rogerhub.com/gpa-calculator-uc/