summaryrefslogtreecommitdiff
path: root/core/fxge/cfx_graphstate.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/fxge/cfx_graphstate.cpp')
-rw-r--r--core/fxge/cfx_graphstate.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/fxge/cfx_graphstate.cpp b/core/fxge/cfx_graphstate.cpp
index 919faa39c6..929abe1af6 100644
--- a/core/fxge/cfx_graphstate.cpp
+++ b/core/fxge/cfx_graphstate.cpp
@@ -22,8 +22,8 @@ void CFX_GraphState::Emplace() {
void CFX_GraphState::SetLineDash(CPDF_Array* pArray, float phase, float scale) {
CFX_GraphStateData* pData = m_Ref.GetPrivateCopy();
pData->m_DashPhase = phase * scale;
- pData->m_DashArray.resize(pArray->GetCount());
- for (size_t i = 0; i < pArray->GetCount(); i++)
+ pData->m_DashArray.resize(pArray->size());
+ for (size_t i = 0; i < pArray->size(); i++)
pData->m_DashArray[i] = pArray->GetNumberAt(i) * scale;
}