Chromium Code Reviews| Index: core/fpdfapi/fpdf_page/cpdf_colorstate.cpp |
| diff --git a/core/fpdfapi/fpdf_page/cpdf_colorstate.cpp b/core/fpdfapi/fpdf_page/cpdf_colorstate.cpp |
| index 580b58a06a2498d517ea28b35a1b9410a1c5de12..ee34b0ea4bc24d0e64417887fb211a8e15945d5b 100644 |
| --- a/core/fpdfapi/fpdf_page/cpdf_colorstate.cpp |
| +++ b/core/fpdfapi/fpdf_page/cpdf_colorstate.cpp |
| @@ -50,7 +50,7 @@ void CPDF_ColorState::SetFillPattern(CPDF_Pattern* pPattern, |
| int R, G, B; |
| FX_BOOL ret = pData->m_FillColor.GetRGB(R, G, B); |
| if (pPattern->m_PatternType == 1 && |
| - ((CPDF_TilingPattern*)pPattern)->m_bColored && !ret) { |
| + ((CPDF_TilingPattern*)pPattern)->colored() && !ret) { |
|
dsinclair
2016/04/26 14:08:23
nit: static_cast, and below.
Lei Zhang
2016/04/26 17:25:37
Fixed.
|
| pData->m_FillRGB = 0x00BFBFBF; |
| return; |
| } |
| @@ -65,7 +65,7 @@ void CPDF_ColorState::SetStrokePattern(CPDF_Pattern* pPattern, |
| int R, G, B; |
| FX_BOOL ret = pData->m_StrokeColor.GetRGB(R, G, B); |
| if (pPattern->m_PatternType == 1 && |
| - ((CPDF_TilingPattern*)pPattern)->m_bColored && !ret) { |
| + ((CPDF_TilingPattern*)pPattern)->colored() && !ret) { |
| pData->m_StrokeRGB = 0x00BFBFBF; |
| return; |
| } |