Hello Joerg,

thanks for your bug report.

- I've been able to reproduce the crash with empty lines on Windows and MacOS. This bug is fixed now in the CVS.

- I've not been able to reproduce the crash with lines purely consisting of spaces. Please contact me when this bug still exists.

Best regards,

Patrick


Am 27.05.2005 um 13:38 schrieb Joerg Bornemann:

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