]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Fix duplex mode mapping (Issue #1200)
authorMichael R Sweet <msweet@msweet.org>
Thu, 13 Mar 2025 20:51:15 +0000 (16:51 -0400)
committerMichael R Sweet <msweet@msweet.org>
Thu, 13 Mar 2025 20:51:19 +0000 (16:51 -0400)
tools/ipptool.c

index 228820ddf11aa2df142441646a2b8dfc97e3e0b3..c8f58a58e3df6139b5361d1c0845db7d80d59394 100644 (file)
@@ -3276,12 +3276,12 @@ parse_generate_file(
        }
        else if ((attr = ippFindAttribute(response, "urf-supported", IPP_TAG_KEYWORD)) != NULL)
        {
-         if (ippContainsString(attr, "DM1"))
+         if (ippContainsString(attr, "DM2"))
            cupsCopyString(params->sheet_back, "flip", sizeof(params->sheet_back));
-         else if (ippContainsString(attr, "DM2"))
-           cupsCopyString(params->sheet_back, "manual-tumble", sizeof(params->sheet_back));
          else if (ippContainsString(attr, "DM3"))
            cupsCopyString(params->sheet_back, "rotated", sizeof(params->sheet_back));
+         else if (ippContainsString(attr, "DM4"))
+           cupsCopyString(params->sheet_back, "manual-tumble", sizeof(params->sheet_back));
          else
            cupsCopyString(params->sheet_back, "normal", sizeof(params->sheet_back));
        }