diff --git a/Pdf4QtLibCore/sources/pdfflatarray.h b/Pdf4QtLibCore/sources/pdfflatarray.h index 2a9634fd..8f1a0c44 100644 --- a/Pdf4QtLibCore/sources/pdfflatarray.h +++ b/Pdf4QtLibCore/sources/pdfflatarray.h @@ -71,11 +71,11 @@ class PDFFlatArray { if constexpr (index < FlatSize) { - return m_flatBlock[size]; + return m_flatBlock[size()]; } else { - return m_variableBlock[size - FlatSize]; + return m_variableBlock[size() - FlatSize]; } } @@ -84,11 +84,11 @@ class PDFFlatArray { if constexpr (index < FlatSize) { - return m_flatBlock[size]; + return m_flatBlock[size()]; } else { - return m_variableBlock[size - FlatSize]; + return m_variableBlock[size() - FlatSize]; } }