File fix-width-and-height-being-switched-when-printing-custom-size.patch of Package okular.7616

From 0919ad87d1826c2c4ad7ac845716f9b8d97d3b03 Mon Sep 17 00:00:00 2001
From: Albert Astals Cid <aacid@kde.org>
Date: Mon, 21 Aug 2017 00:09:27 +0200
Subject: Fix width and height being switched when printing Custom size

BUGS: 383734
---
 core/fileprinter.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/core/fileprinter.cpp b/core/fileprinter.cpp
index a8b5849..c4d8fb4 100644
--- a/core/fileprinter.cpp
+++ b/core/fileprinter.cpp
@@ -537,8 +537,8 @@ QString FilePrinter::mediaPageSize( QPrinter &printer )
     case QPrinter::Letter:     return QStringLiteral("Letter");
     case QPrinter::Tabloid:    return QStringLiteral("Tabloid");
     case QPrinter::Custom:     return QStringLiteral("Custom.%1x%2mm")
-                                            .arg( printer.heightMM() )
-                                            .arg( printer.widthMM() );
+                                            .arg( printer.widthMM() )
+                                            .arg( printer.heightMM() );
     default:                   return QString();
     }
 }
-- 
cgit v0.11.2

openSUSE Build Service is sponsored by