diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-06-05 16:49:11 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-06-05 22:08:05 +0200 |
commit | b8bfa9051242393cc940382fd2a2f34af4db11af (patch) | |
tree | dd1aacff9305c5b9dd19932948373a01303a59ba | |
parent | aa89c1d03e2fa6b314bda5094235ef02ec237fb3 (diff) |
Resolves: tdf#116876 don't reselect index on resize if it wouldn't change
selecting the index sets it as active and updates the previews, so if its an
inactive index and resize happens, leave it as inactive but selected
Change-Id: If823f6b3e8f2ee4e77ba5e5d0202d72893ed614c
Reviewed-on: https://gerrit.libreoffice.org/55345
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r-- | svx/source/dialog/charmap.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/svx/source/dialog/charmap.cxx b/svx/source/dialog/charmap.cxx index 8b568d80269a..1d8d286d03cc 100644 --- a/svx/source/dialog/charmap.cxx +++ b/svx/source/dialog/charmap.cxx @@ -680,7 +680,8 @@ void SvxShowCharSet::RecalculateFont(vcl::RenderContext& rRenderContext) // restore last selected unicode int nMapIndex = mxFontCharMap->GetIndexFromChar(getSelectedChar()); - SelectIndex(nMapIndex); + if (nMapIndex != nSelectedIndex) + SelectIndex(nMapIndex); // rearrange CharSet element in sync with nX- and nY-multiples Size aDrawSize(nX * COLUMN_COUNT, nY * ROW_COUNT); |