Bug 1068195 - Fix an invalid MOZ_ASSERT in moz2d code, asserting the value of a constant string pointer; r=jrmuizel

This commit is contained in:
Ehsan Akhgari 2014-09-17 17:54:43 -04:00
parent 28bba4a48e
commit 3e481f2909

View File

@ -2369,7 +2369,7 @@ DrawTargetD2D::CreateBrushForPattern(const Pattern &aPattern, Float aAlpha)
RefPtr<DrawTargetD2D> dt = new DrawTargetD2D();
if (!dt->Init(samplingRect.Size(),
source->GetFormat())) {
MOZ_ASSERT("Invalid sampling rect size!");
MOZ_ASSERT(false, "Invalid sampling rect size!");
return nullptr;
}