Fix decimal point bug in Context2D color parsing
authorKent Hansen <kent.hansen@nokia.com>
Mon, 24 Oct 2011 13:04:03 +0000 (15:04 +0200)
committerQt by Nokia <qt-info@nokia.com>
Mon, 24 Oct 2011 13:28:30 +0000 (15:28 +0200)
commit5453e78165af24d3124d127cb22c5799f9824794
treed4236cf6256255687d4efe7e802b597268d588b9
parent65b3819ab78979e422941fd1b5035b2b1d76655b
Fix decimal point bug in Context2D color parsing

strtod() uses the locale's decimal point, which for
me is ','. But we want to always use '.' when parsing
color values for Context2D. qstrtod() does that.

This fixes two test failures in qquickcanvasitem.

Change-Id: I2ea58ad328f26903c57c7c80ed95fd24599805f4
Reviewed-by: Charles Yin <charles.yin@nokia.com>
src/declarative/items/context2d/qquickcontext2d.cpp