rezaali / ofxUI

[DEPRECATED] UI Addon for openFrameworks
http://www.syedrezaali.com/#/ofxui-project-showcase/
519 stars 197 forks source link

removeWidget(ofxUIWidget *widget) problem #203

Open cyburgee opened 10 years ago

cyburgee commented 10 years ago

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.