fdo#72998: Custom shapes have improper size.

Change-Id: I4f8b7f80f89ad713e274acf6fc93bb415e660baf