Use better variable name.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39666 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -15,7 +15,7 @@ GPJob::GPJob()
|
||||
fApplicationName(),
|
||||
fOutputStream(NULL),
|
||||
fConfiguration(NULL),
|
||||
fFirstPage(true),
|
||||
fHasPages(false),
|
||||
fVariables(NULL),
|
||||
fBands(NULL),
|
||||
fCachedBand(NULL),
|
||||
@@ -162,7 +162,7 @@ GPJob::End()
|
||||
if (fVariables == NULL)
|
||||
return;
|
||||
|
||||
if (!fFirstPage)
|
||||
if (fHasPages)
|
||||
stp_end_job(fVariables, &fImage);
|
||||
|
||||
stp_vars_destroy(fVariables);
|
||||
@@ -297,8 +297,8 @@ GPJob::PrintPage(list<GPBand*>& bands) {
|
||||
return B_ERROR;
|
||||
}
|
||||
|
||||
if (fFirstPage) {
|
||||
fFirstPage = false;
|
||||
if (!fHasPages) {
|
||||
fHasPages = true;
|
||||
stp_start_job(fVariables, &fImage);
|
||||
}
|
||||
|
||||
|
||||
@@ -68,7 +68,7 @@ private:
|
||||
OutputStream* fOutputStream;
|
||||
GPJobConfiguration* fConfiguration;
|
||||
|
||||
bool fFirstPage;
|
||||
bool fHasPages;
|
||||
stp_image_t fImage;
|
||||
stp_vars_t* fVariables;
|
||||
const stp_printer_t* fPrinter;
|
||||
|
||||
Reference in New Issue
Block a user