diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2016-10-21 11:46:47 +0900 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2016-10-24 11:04:26 +0000 |
commit | 1bd2f008130c717f8f2acd6edad64e00faa2e98d (patch) | |
tree | df21376902d26887ad60e5ade2ecec2b37fb1c62 /svl/source/numbers | |
parent | d129099624d2b646d975c9567541ed9c18adb7ef (diff) |
tdf#103060 Format "GGG" as the era name of a locale-dependent calendar
by default, as Excel does.
This change applies to "GG" and "G" as well. Note that nothing changes
for Italian locale, in which "GGG" stays as a placeholder for day of week.
Change-Id: Iad68f6a9548b7229930c0e0c518fdb29bfaa026f
Reviewed-on: https://gerrit.libreoffice.org/29724
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
Diffstat (limited to 'svl/source/numbers')
-rw-r--r-- | svl/source/numbers/zformat.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/svl/source/numbers/zformat.cxx b/svl/source/numbers/zformat.cxx index a37987ebdbcc..8178b7e4e385 100644 --- a/svl/source/numbers/zformat.cxx +++ b/svl/source/numbers/zformat.cxx @@ -3264,6 +3264,9 @@ bool SvNumberformat::ImpIsOtherCalendar( const ImpSvNumFor& rNumFor ) const case NF_KEY_RR : case NF_KEY_AAA : case NF_KEY_AAAA : + case NF_KEY_G : + case NF_KEY_GG : + case NF_KEY_GGG : return true; } } |