OSDN Git Service

Preserve paint parameters in Paint copy constructor
authorRaph Levien <raph@google.com>
Mon, 25 Aug 2014 16:36:29 +0000 (09:36 -0700)
committerRaph Levien <raph@google.com>
Mon, 25 Aug 2014 16:36:29 +0000 (09:36 -0700)
commit908040534dfc9f227c60dbf170c6b27a1ff123d8
treeb17f268717a549c5b7531b7f9d74491397b82e6b
parent0db4f35e0bbc25ee25ebe2d57174893217248597
Preserve paint parameters in Paint copy constructor

The copy constructor for Paint was setting default values for additional
parameters, rather than copying them from the original object, resulting
in incorrect locale in the software text drawing path.

Fix for bug 17149910 "Chinese font is used on IME even if the system
language is Japanese"

Change-Id: I25f377ce4e0ea66946a27ea46a2db524872ae36f
core/jni/android/graphics/PaintImpl.cpp