summaryrefslogtreecommitdiff
path: root/xfa/fxgraphics/cfx_pattern.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'xfa/fxgraphics/cfx_pattern.cpp')
-rw-r--r--xfa/fxgraphics/cfx_pattern.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/xfa/fxgraphics/cfx_pattern.cpp b/xfa/fxgraphics/cfx_pattern.cpp
index f70a78d566..8293ba1748 100644
--- a/xfa/fxgraphics/cfx_pattern.cpp
+++ b/xfa/fxgraphics/cfx_pattern.cpp
@@ -14,13 +14,10 @@ CFX_Pattern::CFX_Pattern(FX_HatchStyle hatchStyle,
ASSERT(m_hatchStyle >= FX_HATCHSTYLE_Horizontal &&
m_hatchStyle <= FX_HATCHSTYLE_SolidDiamond);
- if (matrix) {
- // TODO(dsinclair): Add a Set(const CFX_Matrix&) method. pdfium:436
- m_matrix.Set(matrix->a, matrix->b, matrix->c, matrix->d, matrix->e,
- matrix->f);
- } else {
+ if (matrix)
+ m_matrix = *matrix;
+ else
m_matrix.SetIdentity();
- }
}
CFX_Pattern::~CFX_Pattern() {}