summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2015-06-30 14:48:48 -0700
committerTom Sepez <tsepez@chromium.org>2015-06-30 14:48:48 -0700
commitac9e977a913d134c5f536eeef60a2de6941f2863 (patch)
treeb3ccc189653b9ad293ca2db6f7508be353b8818f /core
parent327080bacabb3d90094144e66ae57037d4a8d8e6 (diff)
downloadpdfium-ac9e977a913d134c5f536eeef60a2de6941f2863.tar.xz
Fix a clang warning about a dangling else.chromium/2447chromium/2446
BUG=none R=brucedawson@chromium.org Review URL: https://codereview.chromium.org/1223433002.
Diffstat (limited to 'core')
-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 baa5da35ec..072f4082d6 100644
--- a/core/src/fxge/win32/fx_win32_gdipext.cpp
+++ b/core/src/fxge/win32/fx_win32_gdipext.cpp
@@ -807,12 +807,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;