summaryrefslogtreecommitdiff
path: root/xfa/fxfa/parser/cxfa_boxdata.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'xfa/fxfa/parser/cxfa_boxdata.cpp')
-rw-r--r--xfa/fxfa/parser/cxfa_boxdata.cpp18
1 files changed, 4 insertions, 14 deletions
diff --git a/xfa/fxfa/parser/cxfa_boxdata.cpp b/xfa/fxfa/parser/cxfa_boxdata.cpp
index ef9864f6f9..ae172de5b1 100644
--- a/xfa/fxfa/parser/cxfa_boxdata.cpp
+++ b/xfa/fxfa/parser/cxfa_boxdata.cpp
@@ -109,26 +109,16 @@ bool CXFA_BoxData::IsCircular() const {
return m_pNode->JSNode()->GetBoolean(XFA_Attribute::Circular);
}
-pdfium::Optional<float> CXFA_BoxData::GetStartAngle() const {
+pdfium::Optional<int32_t> CXFA_BoxData::GetStartAngle() const {
if (!m_pNode)
return {};
-
- pdfium::Optional<CXFA_Measurement> measure =
- m_pNode->JSNode()->TryMeasure(XFA_Attribute::StartAngle, false);
- if (!measure)
- return {};
- return {measure->GetValue()};
+ return m_pNode->JSNode()->TryInteger(XFA_Attribute::StartAngle, false);
}
-pdfium::Optional<float> CXFA_BoxData::GetSweepAngle() const {
+pdfium::Optional<int32_t> CXFA_BoxData::GetSweepAngle() const {
if (!m_pNode)
return {};
-
- pdfium::Optional<CXFA_Measurement> measure =
- m_pNode->JSNode()->TryMeasure(XFA_Attribute::SweepAngle, false);
- if (!measure)
- return {};
- return {measure->GetValue()};
+ return m_pNode->JSNode()->TryInteger(XFA_Attribute::SweepAngle, false);
}
CXFA_FillData CXFA_BoxData::GetFillData(bool bModified) const {