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

List:       kfm-devel
Subject:    [Patch] -konq-text again
From:       Leo Savernik <l.savernik () aon ! at>
Date:       2003-09-10 22:24:06
[Download RAW message or body]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am Mittwoch, 10. September 2003 18:48 schrieb Leo Savernik:
> Hello,
>
> Again I get the problem that -konq-text produces a black color. I thought
> it was intended to return the text color of the default palette if not
> overridden by any style?
>
[...]

I suggest the following quick-fix.

Ok to commit?

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE/X6SGj5jssenUYTsRAs2XAKCR8XK8XujUOxIDQ/SUlvHFVIKPewCeJAcm
6lo82XpPkQkeq8l0/IGRiaQ=
=vcPq
-----END PGP SIGNATURE-----

["khtml_navigation_26.diff" (text/x-diff)]

Index: xml/dom_docimpl.cpp
===================================================================
RCS file: /home/kde/kdelibs/khtml/xml/dom_docimpl.cpp,v
retrieving revision 1.241
diff -u -p -r1.241 dom_docimpl.cpp
--- xml/dom_docimpl.cpp	31 Aug 2003 11:15:16 -0000	1.241
+++ xml/dom_docimpl.cpp	10 Sep 2003 21:59:53 -0000
@@ -326,7 +326,7 @@ DocumentImpl::DocumentImpl(DOMImplementa
     m_paintDeviceMetrics = 0;
     m_paintDevice = 0;
     m_decoderMibEnum = 0;
-    m_textColor = Qt::black;
+    m_textColor = v ? v->viewport()->colorGroup().text() : Qt::black;
 
     m_view = v;
     m_renderArena = 0;
@@ -356,7 +356,7 @@ DocumentImpl::DocumentImpl(DOMImplementa
     m_implementation->ref();
     pMode = Strict;
     hMode = XHtml;
-    m_textColor = "#000000";
+    //m_textColor = "#000000";
     m_attrNames = new IdNameMapping(getAttrName,getAttrID,ATTR_LAST_ATTR+1,true);
     m_elementNames = new IdNameMapping(getTagName,getTagID,ID_LAST_TAG+1,true);
     m_focusNode = 0;


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

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