#! /bin/sh /usr/share/dpatch/dpatch-run
## 57_pxl-input-slot-fix.dpatch by  <till.kamppeter@gmail.com>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: No description.

@DPATCH@
diff -urNad ghostscript-8.63.dfsg.1~/src/gdevpx.c ghostscript-8.63.dfsg.1/src/gdevpx.c
--- ghostscript-8.63.dfsg.1~/src/gdevpx.c	2008-06-24 16:16:29.000000000 +0200
+++ ghostscript-8.63.dfsg.1/src/gdevpx.c	2008-11-26 11:15:11.000000000 +0100
@@ -1796,6 +1796,7 @@
 
   booloption(Duplex, "Duplex")
   intoption(MediaPosition, "MediaPosition", int)
+  if (code == 0) xdev->MediaPosition_set = true;
   booloption(Tumble, "Tumble")
 
  /*
