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

List:       konq-bugs
Subject:    [Bug 167567] table with BORDER="00" (leading zeros) displays a border
From:       Germain Garand <germain () ebooksfrance ! org>
Date:       2008-08-31 15:11:05
Message-ID: 20080831151105.E7BC9D929 () immanuel ! kde ! org
[Download RAW message or body]

http://bugs.kde.org/show_bug.cgi?id=167567





--- Comment #12 from Germain Garand <germain ebooksfrance org>  2008-08-31 17:11:05 ---
SVN commit 855322 by ggarand:

add missing compatibility bit
<table border=NaN> translates to <table border=1>

CCBUG:167567


 M  +4 -1      html_tableimpl.cpp  


--- trunk/KDE/kdelibs/khtml/html/html_tableimpl.cpp #855321:855322
@@ -440,6 +440,7 @@
     case ATTR_BORDER:
     {
         int border;
+        bool ok = true;
         // ### this needs more work, as the border value is not only
         //     the border of the box, but also between the cells
         if(!attr->val())
@@ -447,7 +448,9 @@
         else if(attr->val()->l == 0)
             border = 1;
         else
-            border = attr->val()->toInt();
+            border = attr->val()->toInt(&ok);
+        if (!ok)
+            border = 1;
 #ifdef DEBUG_DRAW_BORDER
         border=1;
 #endif


-- 
Configure bugmail: http://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Konq-bugs mailing list
Konq-bugs@mail.kde.org
https://mail.kde.org/mailman/listinfo/konq-bugs
[prev in list] [next in list] [prev in thread] [next in thread] 

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