12. Any person who commits a crime while he is the holder of a licence granted as aforesaid shall, on conviction of that crime, undergo-
(a) any term of imprisonment to which he may be sentenced for that crime; and
(b) a term of imprisonment equal to that portion, if any, of his term of imprisonment which remained unexpired at the time of the grant of the licence;
and shall thereafter, notwithstanding anything to the contrary in section 7 or section 9, further undergo-
(c) a term of preventive detention equal to that portion, if any, of his term of preventive detention which remained unexpired at the time of the grant of the licence ; and
(d) any term of preventive detention to which he may be sentenced in any proceedings taken under section 7 consequent on his conviction of that crime;
and the licence, if in force at the date of his conviction of that crime, shall be deemed to be forfeited by virtue of such conviction. *Consequences of convictionof crime committed while at large on licence.*