summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2013-05-23 19:49:08 +0200
committerLuboš Luňák <l.lunak@suse.cz>2013-06-07 11:47:17 +0200
commit46f61ee3997c4c6e1a1dca8b2986f31f0e4a6167 (patch)
treead063fa37dead2ebf7ef0a066068f0e38e9fe1a9 /sd
parent85f892a3a1dbaa3c36ac3f31186eef1ec0eea464 (diff)
be case-insensitive for open/starsymbol comparison
Reviewed-on: https://gerrit.libreoffice.org/4015 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com> Signed-off-by: Luboš Luňák <l.lunak@suse.cz> Conflicts: unotools/source/misc/fontcvt.cxx unotools/source/misc/fontdefs.cxx vcl/generic/glyphs/gcach_ftyp.cxx Change-Id: I7a342c809a723f5f9c03271c6145d9c367cea6de
Diffstat (limited to 'sd')
-rw-r--r--sd/source/filter/eppt/pptx-text.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sd/source/filter/eppt/pptx-text.cxx b/sd/source/filter/eppt/pptx-text.cxx
index 04578a28ec23..83a22cbb8f06 100644
--- a/sd/source/filter/eppt/pptx-text.cxx
+++ b/sd/source/filter/eppt/pptx-text.cxx
@@ -798,7 +798,7 @@ void ParagraphObj::ImplGetNumberingLevel( PPTExBulletProvider& rBuProv, sal_Int1
// instead of a Unicode encoding the encoding RTL_TEXTENCODING_SYMBOL was used.
// Because there might exist a lot of damaged documemts I added this two lines
// which fixes the bullet problem for the export.
- if ( aFontDesc.Name == "StarSymbol" )
+ if ( aFontDesc.Name.equalsIgnoreAsciiCase("StarSymbol") )
aFontDesc.CharSet = RTL_TEXTENCODING_MS_1252;
}
@@ -884,7 +884,7 @@ void ParagraphObj::ImplGetNumberingLevel( PPTExBulletProvider& rBuProv, sal_Int1
case SVX_NUM_CHAR_SPECIAL : // Bullet
{
- if ( aFontDesc.Name.equals("starsymbol") || aFontDesc.Name.equals("opensymbol") )
+ if ( aFontDesc.Name.equalsIgnoreAsciiCase("starsymbol") || aFontDesc.Name.equalsIgnoreAsciiCase("opensymbol") )
{
rtl_TextEncoding eChrSet = aFontDesc.CharSet;
cBulletId = msfilter::util::bestFitOpenSymbolToMSFont(cBulletId, eChrSet, aFontDesc.Name);