mirror of
https://github.com/qpdf/qpdf.git
synced 2025-01-05 08:02:11 +00:00
Minor cleanup
This commit is contained in:
parent
a4de20cd3f
commit
cc500eda91
@ -1,5 +1,4 @@
|
|||||||
#include <qpdf/QPDFNumberTreeObjectHelper.hh>
|
#include <qpdf/QPDFNumberTreeObjectHelper.hh>
|
||||||
#include <qpdf/QTC.hh>
|
|
||||||
|
|
||||||
QPDFNumberTreeObjectHelper::Members::~Members()
|
QPDFNumberTreeObjectHelper::Members::~Members()
|
||||||
{
|
{
|
||||||
|
@ -85,8 +85,8 @@ QPDFPageLabelDocumentHelper::getLabelsForPageRange(
|
|||||||
bool skip_first = false;
|
bool skip_first = false;
|
||||||
if (size >= 2)
|
if (size >= 2)
|
||||||
{
|
{
|
||||||
QPDFObjectHandle last = new_labels[size - 1];
|
QPDFObjectHandle last = new_labels.at(size - 1);
|
||||||
QPDFObjectHandle last_idx = new_labels[size - 2];
|
QPDFObjectHandle last_idx = new_labels.at(size - 2);
|
||||||
if (last_idx.isInteger() && last.isDictionary() &&
|
if (last_idx.isInteger() && last.isDictionary() &&
|
||||||
(label.getKey("/S").unparse() == last.getKey("/S").unparse()) &&
|
(label.getKey("/S").unparse() == last.getKey("/S").unparse()) &&
|
||||||
(label.getKey("/P").unparse() == last.getKey("/P").unparse()) &&
|
(label.getKey("/P").unparse() == last.getKey("/P").unparse()) &&
|
||||||
|
Loading…
Reference in New Issue
Block a user