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.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/fxge/cfx_graphstate.cpp b/core/fxge/cfx_graphstate.cpp
index ad6b5fc6c7..919faa39c6 100644
--- a/core/fxge/cfx_graphstate.cpp
+++ b/core/fxge/cfx_graphstate.cpp
@@ -22,7 +22,7 @@ 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->SetDashCount(static_cast<int>(pArray->GetCount()));
+ pData->m_DashArray.resize(pArray->GetCount());
for (size_t i = 0; i < pArray->GetCount(); i++)
pData->m_DashArray[i] = pArray->GetNumberAt(i) * scale;
}