Commit 4a719dc3 authored by Christoph Feck's avatar Christoph Feck
Browse files

Fix trailing garbage in extracted PDF title

BUG: 325008
FIXED-IN: 4.11.3
REVIEW: 113138
parent 5288d609
......@@ -204,9 +204,8 @@ QString PopplerExtractor::parseFirstPage(Poppler::Document* pdfDoc, const QUrl&
}
}
// FIXME: Sometimes the titles that are extracted are too large. This is a way of trimming them
// though it still gives strange titles.
newPossibleTitle.resize( 50 );
// Sometimes the titles that are extracted are too large. This is a way of trimming them.
newPossibleTitle.truncate( 50 );
return newPossibleTitle;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment