Cherry-pick to XFA: Fix a clang warning about a dangling else.
authorTom Sepez <tsepez@chromium.org>
Tue, 30 Jun 2015 21:48:48 +0000 (14:48 -0700)
committerNico Weber <thakis@chromium.org>
Wed, 1 Jul 2015 21:17:33 +0000 (14:17 -0700)
BUG=none
R=brucedawson@chromium.org

Review URL: https://codereview.chromium.org/1223433002.

core/src/fxge/win32/fx_win32_gdipext.cpp

index 660510c..1cb6912 100644 (file)
@@ -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;