r23186 by jghali - #15808: Scribus crashes when editing hyphenation character in character styles dialog
scribus-commit
scribus-commit at lists.scribus.net
Thu Sep 5 16:32:53 UTC 2019
Author: jghali
Date: Thu Sep 5 16:32:53 2019
New Revision: 23186
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=23186
Log:
#15808: Scribus crashes when editing hyphenation character in character styles dialog
Modified:
trunk/Scribus/scribus/ui/smtextstyles.cpp
Modified: trunk/Scribus/scribus/ui/smtextstyles.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=23186&path=/trunk/Scribus/scribus/ui/smtextstyles.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/smtextstyles.cpp (original)
+++ trunk/Scribus/scribus/ui/smtextstyles.cpp Thu Sep 5 16:32:53 2019
@@ -2987,7 +2987,8 @@
m_selection[i]->resetHyphenChar();
else
{
- uint ch = m_page->hyphenCharLineEdit->text().toUcs4()[0];
+ QString hypenText = m_page->hyphenCharLineEdit->text();
+ uint ch = hypenText.isEmpty() ? 0 : hypenText.toUcs4()[0];
for (int i = 0; i < m_selection.count(); ++i)
m_selection[i]->setHyphenChar(ch);
}
More information about the scribus-commit
mailing list