[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/work/khtml-svg/svg
From:       Rob Buis <buis () kde ! org>
Date:       2006-03-26 13:29:17
Message-ID: 1143379757.827782.14270.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 522695 by buis:

Try to handle html color names too (blue, fuchsia etc.).


 M  +1 -1      SVGColorImpl.cpp  


--- branches/work/khtml-svg/svg/SVGColorImpl.cpp #522694:522695
@@ -266,7 +266,7 @@
         QString name(m_rgbColor.unicode(), m_rgbColor.length());
         name = name.toLower();
         int col = DOM::getValueID(name.toAscii(), name.length());
-        if(col == 0)
+        if(col < SVGCSS_VAL_ALICEBLUE)
             m_qColor = QColor(name);
         else
             m_qColor = cmap[col - SVGCSS_VAL_ALICEBLUE];
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic