Skip to content
This repository has been archived by the owner on Dec 1, 2020. It is now read-only.

ofxUINumberDialer attempts to use NULL font and segfaults #258

Open
mitchmindtree opened this issue Jun 18, 2016 · 0 comments
Open

ofxUINumberDialer attempts to use NULL font and segfaults #258

mitchmindtree opened this issue Jun 18, 2016 · 0 comments

Comments

@mitchmindtree
Copy link
Contributor

mitchmindtree commented Jun 18, 2016

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant