diff --git a/lib/Epub/Epub/hyphenation/Hyphenator.cpp b/lib/Epub/Epub/hyphenation/Hyphenator.cpp index 31e0b35c..b0f3eec7 100644 --- a/lib/Epub/Epub/hyphenation/Hyphenator.cpp +++ b/lib/Epub/Epub/hyphenation/Hyphenator.cpp @@ -197,10 +197,8 @@ std::vector Hyphenator::breakOffsets(const std::string& w std::vector segmentedBreaks; appendSegmentPatternBreaks(cps, *hyphenator, includeFallback, segmentedBreaks); appendApostropheContractionBreaks(cps, segmentedBreaks); - if (!segmentedBreaks.empty()) { - sortAndDedupeBreakInfos(segmentedBreaks); - return segmentedBreaks; - } + sortAndDedupeBreakInfos(segmentedBreaks); + return segmentedBreaks; } // Ask language hyphenator for legal break points.