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:
Michael Pfeiffer
2010-11-28 08:12:39 +00:00
parent 917c4aeb8d
commit fad059587c
2 changed files with 5 additions and 5 deletions
@@ -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);
}
+1 -1
View File
@@ -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;