From: subhransu mohanty Date: Wed, 13 Mar 2019 06:57:03 +0000 (+0900) Subject: [rlottie]: clear any existing brush data before drawing bitmap. X-Git-Tag: submit/tizen/20190314.062257^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F70%2F201370%2F1;p=platform%2Fcore%2Fuifw%2Flottie-player.git [rlottie]: clear any existing brush data before drawing bitmap. Change-Id: I13328147ffd29d09dd8bfc8a9b374bbf20fea4a4 --- diff --git a/src/vector/vpainter.cpp b/src/vector/vpainter.cpp index 39b19f6..f4fea33 100644 --- a/src/vector/vpainter.cpp +++ b/src/vector/vpainter.cpp @@ -168,6 +168,9 @@ void VPainter::drawBitmap(const VRect &target, const VBitmap &bitmap, const VRe { if (!bitmap.valid()) return; + // clear any existing brush data. + setBrush(VBrush()); + if (target.size() == source.size()) { mImpl->drawBitmapUntransform(target, bitmap, source); } else {