mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
Text to speech bugfixing
This commit is contained in:
@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user