Ticket #2534: StyledEdit.diff
File StyledEdit.diff, 759 bytes (added by , 16 years ago) |
---|
-
src/apps/stylededit/StyledEditWindow.cpp
1065 1065 void 1066 1066 StyledEditWindow::Print(const char* documentName) 1067 1067 { 1068 status_t result;1069 1070 if (fPrintSettings == NULL) {1071 result = PageSetup(documentName);1072 if (result != B_OK)1073 return;1074 }1075 1076 1068 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) 1080 1073 return; 1081 1074 1082 1075 // information from printJob