Ticket #2446: mailccfix.patch

File mailccfix.patch, 3.2 KB (added by jdguzman, 14 years ago)

fixed issue with exceeding the 80 char limit

  • src/apps/mail/Header.cpp

    ===================================================================             
     
    445445               field->SetEnabled(true);                                       
    446446               AddChild(field);                                               
    447447       } else {                                                               
     448               if (mail->CC() != NULL) {                                       
     449                       r.Set(x - 12, y, windowRect.Width() - SEPARATOR_MARGIN,
     450                               y + menuFieldHeight);                   
     451                                                                               
     452                       fCc = new TTextControl(r, "", new BMessage(CC_FIELD), fIncoming,                                                                       
     453                               false, B_FOLLOW_LEFT_RIGHT);           
     454                                                                               
     455                       AddChild(fCc);                                         
     456                       r.Set(SEPARATOR_MARGIN, y, x - 12 - 1, y + menuFieldHeight);                                                                           
     457                       BStringView* fCcLabel = new BStringView(r, "", CC_TEXT);
     458                       fCcLabel->SetAlignment(B_ALIGN_RIGHT);                 
     459                       AddChild(fCcLabel);                                     
     460                       fCcLabel->SetHighColor(0, 0, 0);                       
     461                                                                               
     462                       y += controlHeight;                                     
     463               }                                                               
     464                                                                               
    448465               y -= SEPARATOR_MARGIN;                                         
    449466               r.Set(SEPARATOR_MARGIN, y, x - 12 - 1, y + menuFieldHeight);   
    450467               fDateLabel = new BStringView(r, "", kDateLabel);               
     
    724741       if (fAccountTo != NULL)                                                 
    725742               fAccountTo->SetText(mail->To());                               
    726743                                                                               
     744       // Set Cc: Field                                                       
     745       if (mail->CC() != NULL)                                                 
     746               fCc->SetText(mail->CC());                                       
     747                                                                               
    727748       if (fAccount != NULL && mail->GetAccountName(string,sizeof(string)) == B_OK)                                                                           
    728749               fAccount->SetText(string);