diff options
author | mike@reedtribe.org <mike@reedtribe.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-02-11 03:10:54 +0000 |
---|---|---|
committer | mike@reedtribe.org <mike@reedtribe.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-02-11 03:10:54 +0000 |
commit | b53317c6fa0d7b2f86e9d069bb49dc157f04120a (patch) | |
tree | 5afc91e4605942240bc48d407a6a7bff869ab1c8 /src | |
parent | 8ed6443e6c608007e1e62937acfaf29b7fe7b8b0 (diff) |
fix test for empty config
handle empty setconfig
BUG=skia:
Review URL: https://codereview.chromium.org/159533002
git-svn-id: http://skia.googlecode.com/svn/trunk@13394 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src')
-rw-r--r-- | src/core/SkBitmap.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/SkBitmap.cpp b/src/core/SkBitmap.cpp index e76ee02284..96d683c0e2 100644 --- a/src/core/SkBitmap.cpp +++ b/src/core/SkBitmap.cpp @@ -263,7 +263,7 @@ bool SkBitmap::setConfig(const SkImageInfo& info, size_t rowBytes) { return reset_return_false(this); } - if (info.isEmpty()) { + if (info.width() < 0 || info.height() < 0) { return reset_return_false(this); } |