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.
ofxUINumberDialer
's inheritedfont
field never seems to be set to a validofxUIFont
until it is added to a parentofxUICanvas
.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.