Page 1 of 1

CEGUI::String bug

Posted: Wed Oct 26, 2005 18:06
by core
in CEGUI 0.4.0

Code: Select all

String& assign(size_type num, utf32 code_point)
{
    if (num == npos)
        throw std::length_error("Code point count can not be 'npos'");
    grow(num);
    setlen(num);
    utf32* p = ptr();
    while(num--)
        *p = code_point;
    return *this;
}


must be

Code: Select all

*p[b]++[/b] = code_point;

Re: CEGUI::String bug

Posted: Thu Oct 27, 2005 12:29
by CrazyEddie
This is fixed in v0-4 and head branches; allow 24 hours for anonymous access to sync.

Thanks :hammer:

CE