Changeset 265
- Timestamp:
- 09/19/05 13:18:44 (19 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pkpgcounter/trunk/pkpgpdls/pcl345.py
r262 r265 309 309 sys.stderr.write("escstart : %s\n" % escstart) 310 310 311 if pagecount and (pagecount == orientationcount) : 311 if (orientationcount == (pagecount - 1)) and (resets == 1) : 312 pagecount -= 1 313 elif pagecount and (pagecount == orientationcount) : 312 314 pass 313 315 elif resets == ejects == mediasourcecount == mediasizecount == escstart == 1 : 314 316 if (startgfx and endgfx) and (startgfx != endgfx) : 317 pagecount = orientationcount 318 elif (endgfx and not startgfx) and (pagecount > orientationcount) : 315 319 pagecount = orientationcount 316 320 else : … … 329 333 pass 330 334 elif (resets == 1) and (startgfx == endgfx) and (mediasourcecount == 0) : 331 pass 335 if (startgfx > 1) and (startgfx != (pagecount - 1)) : 336 pagecount -= 1 337 else : 338 pass 332 339 elif startgfx == endgfx : 333 340 pagecount = startgfx