r22130 by jghali -
scribus-commit
scribus-commit at lists.scribus.net
Wed Aug 9 22:44:53 UTC 2017
Author: jghali
Date: Wed Aug 9 22:44:52 2017
New Revision: 22130
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=22130
Log:
#14566 follow-up: fix last diacritic not being replaced when searching diacritic-ed words
Modified:
trunk/Scribus/scribus/text/storytext.cpp
Modified: trunk/Scribus/scribus/text/storytext.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=22130&path=/trunk/Scribus/scribus/text/storytext.cpp
==============================================================================
--- trunk/Scribus/scribus/text/storytext.cpp (original)
+++ trunk/Scribus/scribus/text/storytext.cpp Wed Aug 9 22:44:52 2017
@@ -381,6 +381,14 @@
if (index == strLen)
{
foundIndex = i;
+ while ((index + i + diacriticsCounter) < storyLen)
+ {
+ const QChar &curChar = d->at(index + diacriticsCounter + i)->ch;
+ if (!SpecialChars::isArabicModifierLetter(curChar.unicode()) && (curChar.category() != QChar::Mark_NonSpacing))
+ break;
+ ++diacriticsCounter;
+ }
+
if (pLen)
*pLen = strLen + diacriticsCounter;
break;
More information about the scribus-commit
mailing list