ofxUI icon indicating copy to clipboard operation
ofxUI copied to clipboard

ofxUINumberDialer attempts to use NULL font and segfaults

Open mitchmindtree opened this issue 9 years ago • 0 comments

ofxUINumberDialer's inherited font field never seems to be set to a valid ofxUIFont until it is added to a parent ofxUICanvas.

This causes ofxNumberDialer to segfault when doing anything that requires constructing the text bounding box for its label (i.e. during positioning or layout) if it hasn't yet got a parent.

This seems to make it impossible to use ofxNumberDialer as an embedded widget when building a custom widget.

Just posting this in case anyone else runs into any voodoo when constructing ofxNumberDialer without immediately adding it to a parent canvas.

Ran into this while working with @JoshuaBatty on his UI.

mitchmindtree avatar Jun 18 '16 07:06 mitchmindtree