It is legal of it started as nr and changd to restricted

Cfro didn't have issues
Definition of a prohibited firearm
According to the Criminal Code, a prohibited firearm is:
A) A handgun that
-has a barrel equal to or less than 105 mm in length, or
-is designed or adapted to discharge a 25 or 32 calibre cartridge, but does not include any such handgun that is prescribed, where the handgun is for use in international sporting competitions governed by the rules of the International Shooting Union,
B) A firearm that is adapted from a rifle or shotgun, whether by sawing, cutting or any other alteration, and that, as so adapted,
-is less than 660 mm in length, or
-is 660 mm or greater in length and has a barrel less than 457 mm in length,
C) an automatic firearm, whether or not it has been altered to discharge only one projectile with one pressure of the trigger, or
D) any firearm that is prescribed to be a prohibited firearm
By cutting the barrel less than 18.5", you just created a prohibited weapon which you can not own.
Only short barrel allowed is manufacture made ones.