In the removeWidget(ofxUIWidget *widget) function, the widget removed from the vector "widgets" is checked based on name. If you try to remove a widget without a name such as a spacer when there is another widget without a name in the canvas, the first of such widgets will be removed, not necessarily the one intended.
In the removeWidget(ofxUIWidget *widget) function, the widget removed from the vector "widgets" is checked based on name. If you try to remove a widget without a name such as a spacer when there is another widget without a name in the canvas, the first of such widgets will be removed, not necessarily the one intended.