summaryrefslogtreecommitdiff
path: root/xfa/fwl/theme/cfwl_carettp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'xfa/fwl/theme/cfwl_carettp.cpp')
-rw-r--r--xfa/fwl/theme/cfwl_carettp.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/xfa/fwl/theme/cfwl_carettp.cpp b/xfa/fwl/theme/cfwl_carettp.cpp
index 64eef9ffc9..37dfad5146 100644
--- a/xfa/fwl/theme/cfwl_carettp.cpp
+++ b/xfa/fwl/theme/cfwl_carettp.cpp
@@ -43,10 +43,9 @@ void CFWL_CaretTP::DrawCaretBK(CXFA_Graphics* pGraphics,
CFX_RectF rect = *pRect;
path.AddRectangle(rect.left, rect.top, rect.width, rect.height);
if (crFill) {
- pGraphics->SetFillColor(crFill);
+ pGraphics->SetFillColor(*crFill);
} else {
- CXFA_Color crFilltemp(ArgbEncode(255, 0, 0, 0));
- pGraphics->SetFillColor(&crFilltemp);
+ pGraphics->SetFillColor(CXFA_Color(ArgbEncode(255, 0, 0, 0)));
}
pGraphics->FillPath(&path, FXFILL_WINDING, pMatrix);
}