Ticket #2534: StyledEdit.diff

File StyledEdit.diff, 759 bytes (added by julun, 16 years ago)
  • src/apps/stylededit/StyledEditWindow.cpp

     
    10651065void
    10661066StyledEditWindow::Print(const char* documentName)
    10671067{
    1068     status_t result;
    1069 
    1070     if (fPrintSettings == NULL) {
    1071         result = PageSetup(documentName);
    1072         if (result != B_OK)
    1073             return;
    1074     }
    1075 
    10761068    BPrintJob printJob(documentName);
    1077     printJob.SetSettings(new BMessage(*fPrintSettings));
    1078     result = printJob.ConfigJob();
    1079     if (result != B_OK)
     1069    if (fPrintSettings)
     1070        printJob.SetSettings(new BMessage(*fPrintSettings));
     1071
     1072    if (printJob.ConfigJob() != B_OK)
    10801073        return;
    10811074
    10821075    // information from printJob