Following Gitmed v. General Motors Corp. (1994) 26 Cal.App.4th 824, this decision holds that when the plaintiff files an amended complaint after expiration of the time for amendment following the sustaining of a demurrer, but before the case is dismissed, the late-filed amended complaint bars dismissal under CCP 581(f)(2) unless and until the late-filed amended complaint is stricken.