A teenage dealer caught arriving in Chippenham with a stock of hard drugs to sell has been jailed for four years.

Rico Corbin was already on bail for peddling heroin in the town when he was spotted arriving on a train from Bristol.

And when the 19-year-old was arrested at the railway station he was found to have 40 wraps of crack cocaine and 39 of heroin.

Colin Meeke, prosecuting, told Swindon Crown Court that Corbin was first arrested in the Eastern Avenue area on Monday April 2.

He was found to have ten wraps of heroin on him along with £225 in cash and when his mobile phone was searched it was found to have texts about drug dealing on it.

Mr Meeke said the teenager was released on bail by the police while the drugs were analysed.

"He was in fact recognised by police officers as he came back into Chippenham on a train on June 13," he said.

"He was stopped immediately and searched; 79 wraps were found in his possession. A break down of crack and heroin: 40 crack and 39 heroin."

Mr Meeke said the first lot of drugs could be worth up to £200 and the second as much as £1,100.

The court was told that he was also caught at Horfield prison with a small amount of cannabis when he was being taken in last November.

He was found to have the drugs on him when he was strip searched as he was being brought in after being remanded in custody.

But he insisted he picked them up in them up when another prisoner dropped them after deciding against smuggling them in at the last minute, so did not take them in.

Corbin, of Fishponds, Bristol, admitted three counts of possessing class A drugs with intent to supply and one of possession of cannabis.

Jonathan Stanniland, defending, said his client accepted he was facing a lengthy jail term for what he had done.

He said he did not have a long list of previous convictions but was put under pressure to get involved in the trade in drugs.

Since he has been in prison on remand he said his client had been on as many courses as he could to improve his reading and writing skills.

"He is a very different young man to the Rico Corbin who was taken into custody with cannabis hidden in his backside all those months ago," he said.

Jailing him Judge Douglas Field said: "This is a very serious offence: the court takes class A drug dealing very seriously because of the terrible harm these drugs do."