summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-06-05 16:49:11 +0100
committerCaolán McNamara <caolanm@redhat.com>2018-06-05 22:07:33 +0200
commite0cf2c1e4ea94211f59d2ff87bb132754bb74048 (patch)
tree945b310e464960c338d02808956ca9219c7c7c8d
parent9bb6945e97acb4172a8186fbfdd5aa8a7ffbdae1 (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/55344 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.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/svx/source/dialog/charmap.cxx b/svx/source/dialog/charmap.cxx
index 596e0b71a97f..3bf3a01d520f 100644
--- a/svx/source/dialog/charmap.cxx
+++ b/svx/source/dialog/charmap.cxx
@@ -679,7 +679,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);