| Index: src/core/SkPath.cpp
|
| diff --git a/src/core/SkPath.cpp b/src/core/SkPath.cpp
|
| index 19e7048869a4adb34703b389c2970361037739e3..45429a6e1253bd9f5b93481b9a3e5d48af2508ee 100644
|
| --- a/src/core/SkPath.cpp
|
| +++ b/src/core/SkPath.cpp
|
| @@ -1966,11 +1966,13 @@ void SkPath::dump(SkWStream* wStream, bool forceClose, bool dumpAsHex) const {
|
| verb = kDone_Verb; // stop the loop
|
| break;
|
| }
|
| + if (!wStream && builder.size()) {
|
| + SkDebugf("%s", builder.c_str());
|
| + builder.reset();
|
| + }
|
| }
|
| if (wStream) {
|
| wStream->writeText(builder.c_str());
|
| - } else {
|
| - SkDebugf("%s", builder.c_str());
|
| }
|
| }
|
|
|
|
|