mirror of https://github.com/JakubMelka/PDF4QT.git
Bugfix: DocDiff crash
This commit is contained in:
parent
f99c7970f2
commit
cb6cb58d68
|
@ -522,7 +522,7 @@ void PDFDiff::performCompare(const std::vector<PDFDiffPageContext>& leftPrepared
|
||||||
for (auto it = range.first; it != range.second; ++it)
|
for (auto it = range.first; it != range.second; ++it)
|
||||||
{
|
{
|
||||||
const AlgorithmLCS::SequenceItem& item = *it;
|
const AlgorithmLCS::SequenceItem& item = *it;
|
||||||
if (item.isReplaced())
|
if (item.isReplaced() && item.isMatch())
|
||||||
{
|
{
|
||||||
const PDFDiffPageContext& leftPageContext = leftPreparedPages[item.index1];
|
const PDFDiffPageContext& leftPageContext = leftPreparedPages[item.index1];
|
||||||
const PDFDiffPageContext& rightPageContext = rightPreparedPages[item.index2];
|
const PDFDiffPageContext& rightPageContext = rightPreparedPages[item.index2];
|
||||||
|
|
Loading…
Reference in New Issue