Text to speech bugfixing

This commit is contained in:
Jakub Melka 2020-02-19 19:26:11 +01:00
parent ca9e2f3149
commit 44889cfcb8
2 changed files with 5 additions and 2 deletions

View File

@ -148,8 +148,8 @@ void PDFTextToSpeech::setProxy(const pdf::PDFDrawWidgetProxy* proxy)
void PDFTextToSpeech::initializeUI(QComboBox* speechLocaleComboBox,
QComboBox* speechVoiceComboBox,
QSlider* speechRateEdit,
QSlider* speechVolumeEdit,
QSlider* speechPitchEdit,
QSlider* speechVolumeEdit,
QToolButton* speechPlayButton,
QToolButton* speechPauseButton,
QToolButton* speechStopButton,
@ -478,6 +478,9 @@ void PDFTextToSpeech::updateToNextPage(pdf::PDFInteger pageIndex)
pdf::PDFAsynchronousTextLayoutCompiler* compiler = m_proxy->getTextLayoutCompiler();
Q_ASSERT(compiler->isTextLayoutReady());
m_currentTextLayout = pdf::PDFTextLayout();
m_textFlows.clear();
// Find first nonempty page
while (m_currentPage < pageCount)
{

View File

@ -76,8 +76,8 @@ public:
void initializeUI(QComboBox* speechLocaleComboBox,
QComboBox* speechVoiceComboBox,
QSlider* speechRateEdit,
QSlider* speechVolumeEdit,
QSlider* speechPitchEdit,
QSlider* speechVolumeEdit,
QToolButton* speechPlayButton,
QToolButton* speechPauseButton,
QToolButton* speechStopButton,