Fix bug #1364174 (Component Library Editor: Bug when decreasing "Number of Units")