| |
---|
| | |
---|
| | hide_aux_string(); |
---|
| | |
---|
| | if (m_splitter && (m_splitter != m_convertor) && (!multi)) { |
---|
| | m_convertor->unSelected(); |
---|
| | m_splitter->selected(); |
---|
| | if (!m_splitter->isConnected()) { |
---|
| | if (!m_splitter->connect()) { |
---|
| | m_splitter->unSelected(); |
---|
| |
---|
| | } |
---|
| | spsegs = m_splitter->getSegmentList(); |
---|
| | m_splitter->reset(); |
---|
| | m_splitter->unSelected(); |
---|
| | m_convertor->selected(); |
---|
| | s.clear(); |
---|
| | for(unsigned int i = 0;i < spsegs.size();i ++) s += spsegs[i].getYomi(); |
---|
| | } |
---|
| | |
---|
| |
---|
| | // aline |
---|
| | for(unsigned int i = 0;i < spsegs.size();i ++) { |
---|
| | int bl = spsegs[i].getYomi().length(); |
---|
| | int cl = m_convertor->getResultList(i).Yomi.length(); |
---|
| | if (bl != cl) m_convertor->resizeRegion(bl - cl); |
---|
| | if (bl != cl) { |
---|
| | bool t = m_convertor->resizeRegion(bl - cl); |
---|
| | if (!t) { |
---|
| | update_aux_string(utf8_mbstowcs(String(_("The error was received from Converter. ")))); |
---|
| | m_convertor->reset(); |
---|
| | show_aux_string(); |
---|
| | return; |
---|
| | } |
---|
| | } |
---|
| | } |
---|
| | } |
---|
| | |
---|
| | m_no_update = false; |
---|
| |
---|
| | |