LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File cups-1.3.3-testppd_none.patch of Package cups (Project DISCONTINUED:openSUSE:11.1)

--- cups-1.3.3/systemv/cupstestppd.c.orig	2007-10-15 18:50:01.000000000 +0200
+++ cups-1.3.3/systemv/cupstestppd.c	2007-10-15 18:52:26.000000000 +0200
@@ -983,8 +983,8 @@
 	  else
 	    ydpi = xdpi;
 
-	  if (xdpi <= 0 || xdpi > 99999 || ydpi <= 0 || ydpi > 99999 ||
-	      strcmp(ptr, "dpi"))
+	  if ((xdpi <= 0 || xdpi > 99999 || ydpi <= 0 || ydpi > 99999 ||
+	      strcmp(ptr, "dpi")) && (strcmp(ptr, "None")))
 	  {
 	    if (verbose >= 0)
 	    {