The parents of Glasgow toddler Andrew Morton, who was killed by an airgun pellet, have admitted dealing drugs.
Police raided the couple's home after a tip-off
Sharon McMillan and Andy Morton were arrested after a police raid six months before their two year-old son was shot.
Officers discovered £300 worth of cannabis which had been bought to sell to friends in the area.
The pair will be sentenced next month after pleading guilty at Glasgow Sheriff Court to supplying the drug between July and October 2004.
The court heard that police searched their home in the city's Cambusdoon Road, Craigend, on 12 October following a tip-off.
McMillan said the several pieces of cannabis wrapped in foil which were found by police was "hash" and that it belonged to her.
The 35-year-old admitted that the dealing had been going on for three months before the raid.
Morton, 31, was quizzed by police and said he had been involved in the dealing as well.
The court heard McMillan had been a "heavy" cannabis user at the time, which had become known within the neighbourhood.
People who wanted the drug would then regularly approach her in a bid to purchase it.
McMillan said the dealing was done to fund more cannabis, but that she now "regretted" what had gone on.
Andrew Morton was shot by Mark Bonini near his home
The couple also faced charges of possessing cannabis and amphetamine on the day of the raid.
But, after discussions between their lawyers and prosecutors, not guilty pleas were accepted to these charges.
Sheriff John Newall delayed sentence pending reports.
The appearance in the dock comes less than a year after their young son Andrew died.
He was killed after being struck on the head with an airgun pellet just yards from his home last March.
Mark Bonini was later convicted of his murder and jailed for life at the High Court in Glasgow.