fix illegal string offet value #22
code style
Merge pull request #24 from cogizz/fix/illegal-string-offset

Fix illegal string offset error in valueToWidget().