From 09783f72d496a9de0cd6e4f9160b4e7378546733 Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Tue, 23 Mar 2010 08:59:52 +0000 Subject: [PATCH] Fixed ordering bug that caused an assertion because symbol list control wasn't set to unicode yet git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63746 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/richtext/richtextsymboldlg.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/richtext/richtextsymboldlg.cpp b/src/richtext/richtextsymboldlg.cpp index 0e20dfe6f4..c19891efcd 100644 --- a/src/richtext/richtextsymboldlg.cpp +++ b/src/richtext/richtextsymboldlg.cpp @@ -505,12 +505,6 @@ bool wxSymbolPickerDialog::TransferDataToWindow() m_fontCtrl->SetSelection(0); } - if (!m_symbol.empty()) - { - int sel = (int) m_symbol[0]; - m_symbolsCtrl->SetSelection(sel); - } - #if defined(__UNICODE__) if (m_subsetCtrl->GetCount() == 0) { @@ -528,6 +522,12 @@ bool wxSymbolPickerDialog::TransferDataToWindow() m_symbolsCtrl->SetUnicodeMode(m_fromUnicode); #endif + if (!m_symbol.empty()) + { + int sel = (int) m_symbol[0]; + m_symbolsCtrl->SetSelection(sel); + } + UpdateSymbolDisplay(); m_dontUpdate = false;