One can also be undignified and flattering toward a virtue.
Inexperienced girls flatter themselves with the notion that it is in their power to make a man happy.