summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2015-06-30 14:48:48 -0700
committerNico Weber <thakis@chromium.org>2015-07-01 14:17:33 -0700
commit398021a2f61d76df67858cd6c422698f205b726c (patch)
treeece9a9fafa980a51c20a1554aaa893bbe6b5e7ae
parent2827bddd85edd37a9af6fb4e47882334f007e59b (diff)
downloadpdfium-398021a2f61d76df67858cd6c422698f205b726c.tar.xz
Cherry-pick to XFA: Fix a clang warning about a dangling else.
BUG=none R=brucedawson@chromium.org Review URL: https://codereview.chromium.org/1223433002.
-rw-r--r--core/src/fxge/win32/fx_win32_gdipext.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/src/fxge/win32/fx_win32_gdipext.cpp b/core/src/fxge/win32/fx_win32_gdipext.cpp
index 660510c562..1cb6912073 100644
--- a/core/src/fxge/win32/fx_win32_gdipext.cpp
+++ b/core/src/fxge/win32/fx_win32_gdipext.cpp
@@ -810,12 +810,13 @@ static GpPen* _GdipCreatePen(const CFX_GraphStateData* pGraphState, const CFX_Af
}
CallFunc(GdipSetPenDashArray)(pPen, pDashArray, nCount);
FX_FLOAT phase = pGraphState->m_DashPhase;
- if (bDashExtend)
+ if (bDashExtend) {
if (phase < 0.5f) {
phase = 0;
} else {
phase -= 0.5f;
}
+ }
CallFunc(GdipSetPenDashOffset)(pPen, phase);
FX_Free(pDashArray);
pDashArray = NULL;