From 1d83e1981c8b89da93dff37a4f8b2b1ad8480b44 Mon Sep 17 00:00:00 2001 From: Romain Guy Date: Tue, 17 Aug 2010 11:37:00 -0700 Subject: Correctly set the viewport in layers. Bug #2919295 Change-Id: I16ce79ab0d5747cb01c6c1abe531da3dfd93fb54 --- libs/hwui/TextDropShadowCache.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libs/hwui/TextDropShadowCache.h') diff --git a/libs/hwui/TextDropShadowCache.h b/libs/hwui/TextDropShadowCache.h index 9c861870320d..5fbe9e5b750d 100644 --- a/libs/hwui/TextDropShadowCache.h +++ b/libs/hwui/TextDropShadowCache.h @@ -47,7 +47,7 @@ struct ShadowText { ShadowText(const ShadowText& shadow): paint(shadow.paint), radius(shadow.radius), len(shadow.len), hash(shadow.hash) { - text = new char[len]; + text = new char[shadow.len]; memcpy(text, shadow.text, shadow.len); } -- cgit v1.2.3-59-g8ed1b