A sheriff condemned a joiner who hurled a millstone through his former partner’s bedroom window for inflicting an “absolutely terrifying” ordeal on her.
Allan Meyer, 39, sent the stone crashing through the glass and then climbed into the home.
A court previously heard Meyer wrongly believed his ex was inside having sex with another man.
His former partner Kelly Smith and two children were in the bedroom, the court was told.
Meyer was given a two-year community payback order with supervision when he appeared for sentencing at Edinburgh Sheriff Court on Thursday.
He was also put on a restriction of liberty order for eight months.
Sentencing him, Sheriff Robert Fife referred to the description of the millstone as being the size of a “small tyre” by Meyer’s solicitor.
The sheriff said: “Frankly that’s not a small item. This was quite clearly a horrific experience.
“You not only threw the millstone through the window but climbed inside. It must have been absolutely terrifying.”
At the previous hearing, fiscal depute Anna Robertson said those inside Kelly’s home in Musselburgh, East Lothian, were left terrified during the 1am incident and the screaming caused Meyer to flee the scene.
Ms Robertson said: “(Kelly) heard a loud smashing noise from her bedroom window.
“She observed the figure of a male around 6ft tall climbing through the window and entering her home.”
Meyer, from Edinburgh’s Restalrig area, was caught after cops recovered blood droplets from the outer window and forensically linked them to him.
During that hearing, defence agent Nigel Beaumont said Meyer had become “enraged” after he believed he heard sexual noises coming from the bedroom.
The court was told the couple had been in a relationship for 15 years.
Sheriff Fife previously issued a two-year non-harassment order against Meyer banning him from approaching or contacting Kelly.
Meyer admitted throwing the millstone through the property’s window on July 20 last year and entering uninvited.