]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - filter/rastertolabel.c
Sandboxed applications were not able to get the default printer (Issue #5676)
[thirdparty/cups.git] / filter / rastertolabel.c
index 226a3740f4bcb3f6ae589e00a00569b54f280de3..35d678db730a409341d86e86a5d3069590ce8d96 100644 (file)
@@ -1,10 +1,11 @@
 /*
  * Label printer filter for CUPS.
  *
- * Copyright 2007-2016 by Apple Inc.
- * Copyright 2001-2007 by Easy Software Products.
+ * Copyright © 2007-2019 by Apple Inc.
+ * Copyright © 2001-2007 by Easy Software Products.
  *
- * Licensed under Apache License v2.0.  See the file "LICENSE" for more information.
+ * Licensed under Apache License v2.0.  See the file "LICENSE" for more
+ * information.
  */
 
 /*
@@ -613,7 +614,14 @@ EndPage(ppd_file_t          *ppd,  /* I - PPD file */
        */
 
        puts("^XZ");
+
+       /*
+        * Delete the label image...
+        */
+
+       puts("^XA");
         puts("^IDR:CUPS.GRF^FS");
+       puts("^XZ");
 
        /*
         * Cut the label as needed...