summaryrefslogtreecommitdiffstats
path: root/include/i18nutil
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-01-22 10:54:46 +0000
committerCaolán McNamara <caolanm@redhat.com>2021-01-22 18:15:51 +0100
commit651e9e7278fffa79248fb173432de0af4a622b5d (patch)
treefa929970c5ea65cb303288f1d2a19824369bb0ea /include/i18nutil
parenttdf#130614, tdf#108887: sc_uicalc: Add unittest (diff)
downloadcore-651e9e7278fffa79248fb173432de0af4a622b5d.tar.gz
core-651e9e7278fffa79248fb173432de0af4a622b5d.zip
tdf#135590 rotated paper sizes reported as portrait size they are not
since... commit ff4896a2af1df6138e9246fe1588dfe8c3748f1a Date: Fri Jun 29 11:36:03 2018 -0300 Sets paper sizes listbox in print dialog see as the above commit added some uses of doSloppyFit to vcl I imagine the calls there want to be able to match rotated paper sizes, but in the cases of tdf#135590 we don't want that behaviour because it doesn't match what the user is presented with, the width and height are swapped. So drop matching against swapped height/width by default, but let calls added in 'Sets paper sizes listbox in print dialog' continue to match rotated sizes. Change-Id: I34aeddf12a7ca22234fbc6394487d3c8da7772ca Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109784 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include/i18nutil')
-rw-r--r--include/i18nutil/paper.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/i18nutil/paper.hxx b/include/i18nutil/paper.hxx
index 1fc09f1f1267..7b99c0861e48 100644
--- a/include/i18nutil/paper.hxx
+++ b/include/i18nutil/paper.hxx
@@ -134,7 +134,7 @@ public:
tools::Long getWidth() const { return m_nPaperWidth; }
tools::Long getHeight() const { return m_nPaperHeight; }
bool sloppyEqual(const PaperInfo& rOther) const;
- void doSloppyFit();
+ void doSloppyFit(bool bAlsoTryRotated = false);
static PaperInfo getSystemDefaultPaper();
static PaperInfo getDefaultPaperForLocale(const css::lang::Locale& rLocale);