Context : AA Dor is an eclipsing , post common-envelope binary with an sdOB-type primary and a low-mass secondary . Eleven years ago , an NLTE spectral analysis showed a discrepancy in the surface gravity that was derived by radial-velocity and light-curve analysis , \log g \hskip { -1.422638 pt } = \hskip { -1.422638 pt } 5.21 \pm 0.1 ( \mathrm { cm / sec ^ { 2 } } ) and \log g \hskip { -1.422638 pt } = \hskip { -1.422638 pt } 5.53 \pm 0.03 , respectively . Aims : We aim to determine both the effective temperature and surface gravity of AA Dor precisely from high-resolution , high-S/N observations taken during the occultation of the secondary . Methods : We calculated an extended grid of metal-line blanketed , state-of-the-art , non-LTE model atmospheres in the parameter range of the primary of AA Dor . Synthetic spectra calculated from this grid were compared to optical observations . Results : We verify \mbox { $T _ { \mathrm { eff } } $ } \hskip { -1.422638 pt } = \hskip { -1.422638 pt } 42000 \pm 1000 % \mathrm { K } from our former analyses and determine a higher \log g \hskip { -1.422638 pt } = \hskip { -1.422638 pt } 5.46 \pm 0.05 . The main reason are new Stark-broadening tables that were used for calculating of the theoretical Balmer-line profiles . Conclusions : Our result for the surface gravity agrees with the value from light-curve analysis within the error limits , thereby solving the so-called gravity problem in AA Dor .