aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRomain Guy <romainguy@google.com>2012-02-21 18:33:02 -0800
committerRomain Guy <romainguy@google.com>2012-02-21 18:33:02 -0800
commite4259e14d623a697079f0f3c8ae53a8ff349d311 (patch)
tree0bbe6a8fdb198da16c5da2bd1ced7996a4ab0906 /src
parentdd7047bd441b597fe8a555ba98a5a146a224dea1 (diff)
downloadexternal_skia-e4259e14d623a697079f0f3c8ae53a8ff349d311.zip
external_skia-e4259e14d623a697079f0f3c8ae53a8ff349d311.tar.gz
external_skia-e4259e14d623a697079f0f3c8ae53a8ff349d311.tar.bz2
The generation ID of a path should be copied by the copy ctor.
Change-Id: I01ebeeaf58a3fabf3b9891249d1c43f3f0ed3875
Diffstat (limited to 'src')
-rw-r--r--src/core/SkPath.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/SkPath.cpp b/src/core/SkPath.cpp
index c99db4c..e6c1c25 100644
--- a/src/core/SkPath.cpp
+++ b/src/core/SkPath.cpp
@@ -116,7 +116,7 @@ SkPath::SkPath(const SkPath& src) {
*this = src;
#ifdef SK_BUILD_FOR_ANDROID
// the assignment operator above increments the ID so correct for that here
- fGenerationID--;
+ fGenerationID = src.fGenerationID;
#endif
}