commit | b53317c6fa0d7b2f86e9d069bb49dc157f04120a | [log] [tgz] |
---|---|---|
author | mike@reedtribe.org <mike@reedtribe.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | Tue Feb 11 03:10:54 2014 +0000 |
committer | mike@reedtribe.org <mike@reedtribe.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | Tue Feb 11 03:10:54 2014 +0000 |
tree | 5afc91e4605942240bc48d407a6a7bff869ab1c8 | |
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
diff --git a/src/core/SkBitmap.cpp b/src/core/SkBitmap.cpp index e76ee02..96d683c 100644 --- a/src/core/SkBitmap.cpp +++ b/src/core/SkBitmap.cpp
@@ -263,7 +263,7 @@ return reset_return_false(this); } - if (info.isEmpty()) { + if (info.width() < 0 || info.height() < 0) { return reset_return_false(this); }