summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-06-05 16:49:11 +0100
committerAndras Timar <andras.timar@collabora.com>2018-06-11 15:16:36 +0200
commit5d2b21e9473fa6ca88eb126a5c22f62fe5207e07 (patch)
tree8ab300774d5d540a1edb6bfd2aadf9f35e0fd831 /svx
parent478d0f5c2349fe32bf2221cd83b6f6ea3dd02fd5 (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/55346 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> (cherry picked from commit 63e1546668ac464d1ba0b02ba5e76fb064e63100)
Diffstat (limited to 'svx')
-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 9fc4f3f66a8b..7a57199e2d87 100644
--- a/svx/source/dialog/charmap.cxx
+++ b/svx/source/dialog/charmap.cxx
@@ -758,7 +758,8 @@ void SvxShowCharSet::RecalculateFont(vcl::RenderContext& rRenderContext)
// restore last selected unicode
int nMapIndex = mxFontCharMap->GetIndexFromChar(getSelectedChar());
- SelectIndex(nMapIndex);
+ if (nMapIndex != nSelectedIndex)
+ SelectIndex(nMapIndex);
aVscrollSB->Show();