Subversion Repositories tpanel

Rev

Rev 365 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 365 Rev 384
Line 39... Line 39...
39
 
39
 
40
bool TPageInterface::drawText(PAGE_T& pinfo, SkBitmap *img)
40
bool TPageInterface::drawText(PAGE_T& pinfo, SkBitmap *img)
41
{
41
{
42
    MSG_TRACE("TPageInterface::drawText(PAGE_T& pinfo, SkImage& img)");
42
    MSG_TRACE("TPageInterface::drawText(PAGE_T& pinfo, SkImage& img)");
43
 
43
 
44
    if (pinfo.sr[0].te.empty())
44
    if (pinfo.sr.empty() || pinfo.sr[0].te.empty())
45
        return true;
45
        return true;
46
 
46
 
47
    MSG_DEBUG("Searching for font number " << pinfo.sr[0].fi << " with text " << pinfo.sr[0].te);
47
    MSG_DEBUG("Searching for font number " << pinfo.sr[0].fi << " with text " << pinfo.sr[0].te);
48
    FONT_T font = mFonts->getFont(pinfo.sr[0].fi);
48
    FONT_T font = mFonts->getFont(pinfo.sr[0].fi);
49
 
49