* replace some whitespaces

* return error in case we could not get all values from JobConfig



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26822 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Karsten Heimrich
2008-08-05 20:40:49 +00:00
parent 1c08970124
commit 1a74e75248
+5 -4
View File
@@ -197,7 +197,8 @@ BPrintJob::ConfigJob()
delete fSetupMessage;
fSetupMessage = messenger.Result();
_HandlePrintSetup(fSetupMessage);
if (!_HandlePrintSetup(fSetupMessage))
return B_ERROR;
return B_OK;
}
@@ -289,7 +290,7 @@ BPrintJob::CommitJob()
fSpoolFile->Write(&fSpoolFileHeader, sizeof(print_file_header));
// set file attributes
app_info appInfo;
app_info appInfo;
be_app->GetAppInfo(&appInfo);
const char* printerName = "";
fSetupMessage->FindString(PSRV_FIELD_CURRENT_PRINTER, &printerName);
@@ -465,14 +466,14 @@ BPrintJob::GetResolution(int32 *xdpi, int32 *ydpi)
int32
BPrintJob::FirstPage()
{
return fFirstPage;
return fFirstPage;
}
int32
BPrintJob::LastPage()
{
return fLastPage;
return fLastPage;
}