summaryrefslogtreecommitdiff
path: root/writerfilter
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2014-10-12 16:17:01 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2014-10-12 16:26:01 +0200
commit997ce52eb7ef5d1418784bc16afb495ec43fe64c (patch)
tree8e5e8f73b1d0b8f4cd0ce558d4d0eedd014bc1db /writerfilter
parent352958b7c6bbfeb8352570b28487cc1713f5a850 (diff)
DOCX filter: fix <w:em> handling
The real news here is that "comma" and "dot" was swapped on export, the rest is just a fixup of recent breakage. Change-Id: I54045f5837652dc38a30361e21ced25aeaf58257
Diffstat (limited to 'writerfilter')
-rw-r--r--writerfilter/source/dmapper/DomainMapper.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/writerfilter/source/dmapper/DomainMapper.cxx b/writerfilter/source/dmapper/DomainMapper.cxx
index aa0b80effcaf..641cc4912493 100644
--- a/writerfilter/source/dmapper/DomainMapper.cxx
+++ b/writerfilter/source/dmapper/DomainMapper.cxx
@@ -3274,13 +3274,13 @@ sal_Int16 DomainMapper::getEmphasisValue(const sal_Int32 nIntValue)
{
switch (nIntValue)
{
- case 1:
+ case NS_ooxml::LN_Value_ST_Em_dot:
return com::sun::star::text::FontEmphasis::DOT_ABOVE;
- case 2:
+ case NS_ooxml::LN_Value_ST_Em_comma:
return com::sun::star::text::FontEmphasis::ACCENT_ABOVE;
- case 3:
+ case NS_ooxml::LN_Value_ST_Em_circle:
return com::sun::star::text::FontEmphasis::CIRCLE_ABOVE;
- case 4:
+ case NS_ooxml::LN_Value_ST_Em_underDot:
return com::sun::star::text::FontEmphasis::DOT_BELOW;
default:
return com::sun::star::text::FontEmphasis::NONE;