diff options
author | Lei Zhang <thestig@chromium.org> | 2015-10-19 12:00:05 -0700 |
---|---|---|
committer | Lei Zhang <thestig@chromium.org> | 2015-10-19 12:00:05 -0700 |
commit | aff4635dad81bc319266d9d84b81552580cd2b65 (patch) | |
tree | 0a071983cbcd7a50db4c4865099a8f6e93192123 /core/src/fxge/dib/fx_dib_convert.cpp | |
parent | 6101a5f98b27888f1736ae74982ed4d409d83be0 (diff) | |
download | pdfium-aff4635dad81bc319266d9d84b81552580cd2b65.tar.xz |
Sanity check the values of TRUE and FALSE.
Get rid of cond ? TRUE : FALSE.
R=tsepez@chromium.org
Review URL: https://codereview.chromium.org/1405723003 .
Diffstat (limited to 'core/src/fxge/dib/fx_dib_convert.cpp')
-rw-r--r-- | core/src/fxge/dib/fx_dib_convert.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/fxge/dib/fx_dib_convert.cpp b/core/src/fxge/dib/fx_dib_convert.cpp index 4b50a0cdf3..7e7a619595 100644 --- a/core/src/fxge/dib/fx_dib_convert.cpp +++ b/core/src/fxge/dib/fx_dib_convert.cpp @@ -1096,7 +1096,7 @@ CFX_DIBitmap* CFX_DIBSource::CloneConvert(FXDIB_Format dest_format, } FX_BOOL ret = TRUE; CFX_DIBitmap* pSrcAlpha = NULL; - if (m_AlphaFlag & 2) { + if (HasAlpha()) { pSrcAlpha = (GetFormat() == FXDIB_Argb) ? GetAlphaMask() : m_pAlphaMask; if (pSrcAlpha == NULL) { delete pClone; |