From eebb4a2681af98047a804b6f8d4d76e0cd40ab76 Mon Sep 17 00:00:00 2001 From: "reed@google.com" Date: Thu, 26 May 2011 11:39:41 +0000 Subject: balance the call to matrix::flatten from r1414. Formerly both of these were just memcpy. This fixes a regression when using matrices in pictures. git-svn-id: http://skia.googlecode.com/svn/trunk@1428 2bbb7eff-a529-9590-31e7-b0007b416f81 --- src/core/SkPictureFlat.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/core/SkPictureFlat.h b/src/core/SkPictureFlat.h index dae7b8aed0..697b399a6a 100644 --- a/src/core/SkPictureFlat.h +++ b/src/core/SkPictureFlat.h @@ -147,7 +147,7 @@ public: static SkFlatMatrix* Flatten(SkChunkAlloc* heap, const SkMatrix& matrix, int index); void unflatten(SkMatrix* result) const { - memcpy(result, fMatrixData, sizeof(SkMatrix)); + result->unflatten(fMatrixData); } #ifdef SK_DEBUG_DUMP -- cgit v1.2.3