summaryrefslogtreecommitdiff
path: root/i18nutil
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2017-11-10 14:56:22 +0200
committerTor Lillqvist <tml@collabora.com>2017-11-11 02:06:16 +0100
commit4b63977c98245efcedd905f37a85f988c3bb44e2 (patch)
treed19ca683dff19152d4b44f3d46682ff739ccd979 /i18nutil
parent38f4d4ca02cdc2fd4656e3a72def94da1df89650 (diff)
Remove duplication of Paper enum as #defines
Not needed any more. We still have the fragile requirement that the order of entries in the aDinTab array in i18nutil/source/utility/paper.cxx has to match the enum order. Change-Id: I858fd56ad6bb1a3f3c2c39f7830b4dc6aea7cc1f Reviewed-on: https://gerrit.libreoffice.org/44600 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tor Lillqvist <tml@collabora.com>
Diffstat (limited to 'i18nutil')
-rw-r--r--i18nutil/source/utility/paper.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/i18nutil/source/utility/paper.cxx b/i18nutil/source/utility/paper.cxx
index 1d252c43d3a7..c12ac29704ef 100644
--- a/i18nutil/source/utility/paper.cxx
+++ b/i18nutil/source/utility/paper.cxx
@@ -61,6 +61,9 @@ struct PageDesc
//http://partners.adobe.com/public/developer/en/ps/5003.PPD_Spec_v4.3.pdf
//https://web.archive.org/web/20040912070512/http://www.y-adagio.com/public/committees/docsii/doc_00-49/symp_ulaan/china_ppr.pdf (Kai)
//http://www.sls.psi.ch/controls/help/howto/Howto_Print_a_A0_Poster_at_WSLA_012_2.pdf (Dia)
+
+//!! The order of these entries must correspond to enum Paper in <i18nutil/paper.hxx>
+
static const PageDesc aDinTab[] =
{
{ MM2MM100( 841 ), MM2MM100( 1189 ), "A0", nullptr },