Hello opensg-users!

Trying to call osg::TextVectorFace::layout(lines, layoutParam, layoutResult) results in a crash if "lines" contains emtpy strings (or a string that purely consists of spaces).

The crash occurs in OSGTextFace.cpp (revision 1.1) line 228:
--cut-----------
result.lineBounds.push_back(lineResult.lineBounds.front());
--cut-----------

The expression lineResult.lineBounds is empty so the push_back fails.

I don't dare to supply my work-around because I'm not quite sure if it's free of side effects. :)
Could someone with a deeper insight into TextVectorFace try to fix this?


Regards,

Joerg.


-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to