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(),
|
fApplicationName(),
|
||||||
fOutputStream(NULL),
|
fOutputStream(NULL),
|
||||||
fConfiguration(NULL),
|
fConfiguration(NULL),
|
||||||
fFirstPage(true),
|
fHasPages(false),
|
||||||
fVariables(NULL),
|
fVariables(NULL),
|
||||||
fBands(NULL),
|
fBands(NULL),
|
||||||
fCachedBand(NULL),
|
fCachedBand(NULL),
|
||||||
@@ -162,7 +162,7 @@ GPJob::End()
|
|||||||
if (fVariables == NULL)
|
if (fVariables == NULL)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (!fFirstPage)
|
if (fHasPages)
|
||||||
stp_end_job(fVariables, &fImage);
|
stp_end_job(fVariables, &fImage);
|
||||||
|
|
||||||
stp_vars_destroy(fVariables);
|
stp_vars_destroy(fVariables);
|
||||||
@@ -297,8 +297,8 @@ GPJob::PrintPage(list<GPBand*>& bands) {
|
|||||||
return B_ERROR;
|
return B_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (fFirstPage) {
|
if (!fHasPages) {
|
||||||
fFirstPage = false;
|
fHasPages = true;
|
||||||
stp_start_job(fVariables, &fImage);
|
stp_start_job(fVariables, &fImage);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ private:
|
|||||||
OutputStream* fOutputStream;
|
OutputStream* fOutputStream;
|
||||||
GPJobConfiguration* fConfiguration;
|
GPJobConfiguration* fConfiguration;
|
||||||
|
|
||||||
bool fFirstPage;
|
bool fHasPages;
|
||||||
stp_image_t fImage;
|
stp_image_t fImage;
|
||||||
stp_vars_t* fVariables;
|
stp_vars_t* fVariables;
|
||||||
const stp_printer_t* fPrinter;
|
const stp_printer_t* fPrinter;
|
||||||
|
|||||||
Reference in New Issue
Block a user