Fix bug in setSize()

The function was referring to "cm", which is not necessarily defined.