summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-07-17 15:55:03 +0100
committerEike Rathke <erack@redhat.com>2018-07-18 20:59:34 +0200
commit805ea77cf21ff96f8ffd091f94726840771ee658 (patch)
tree0317384d4cc7f3729f7a288ffae1a468b2d7f9d5 /cui
parent1eb8837f8410c48661fd99253faf6c8fa05353de (diff)
Related: tdf#118681 use a case insensitive compare for hex digits
Change-Id: I7b177d2772a86cada37c20056794bc1d8ab50991 Reviewed-on: https://gerrit.libreoffice.org/57565 Tested-by: Jenkins Reviewed-by: Eike Rathke <erack@redhat.com>
Diffstat (limited to 'cui')
-rwxr-xr-xcui/source/dialogs/cuicharmap.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/cui/source/dialogs/cuicharmap.cxx b/cui/source/dialogs/cuicharmap.cxx
index 7c6d8f50a342..678bddee71e3 100755
--- a/cui/source/dialogs/cuicharmap.cxx
+++ b/cui/source/dialogs/cuicharmap.cxx
@@ -977,8 +977,8 @@ IMPL_LINK_NOARG(SvxCharacterMap, CharHighlightHdl, SvxShowCharSet*, void)
setCharName(cChar);
// Update the hex and decimal codes only if necessary
- if (m_xHexCodeText->get_text() != aHexText)
- m_xHexCodeText->set_text( aHexText );
+ if (!m_xHexCodeText->get_text().equalsIgnoreAsciiCase(aHexText))
+ m_xHexCodeText->set_text(aHexText);
if (m_xDecimalCodeText->get_text() != aDecimalText)
m_xDecimalCodeText->set_text( aDecimalText );
@@ -1020,7 +1020,7 @@ IMPL_LINK_NOARG(SvxCharacterMap, SearchCharHighlightHdl, SvxShowCharSet*, void)
setCharName(cChar);
// Update the hex and decimal codes only if necessary
- if (m_xHexCodeText->get_text() != aHexText)
+ if (!m_xHexCodeText->get_text().equalsIgnoreAsciiCase(aHexText))
m_xHexCodeText->set_text(aHexText);
if (m_xDecimalCodeText->get_text() != aDecimalText)
m_xDecimalCodeText->set_text( aDecimalText );