changeset 968:d6e24af3584f

use wordStyle() for bullets in Html_tag_open_frame() This avoids giant bullets if an <iframe> has width or height specified.
author Johannes Hofmann <Johannes.Hofmann@gmx.de>
date Mon, 02 Mar 2009 16:12:12 +0100
parents c8835b4dfdc7
children 4cee89a2b2bf
files src/html.cc
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/html.cc	Fri Feb 27 05:15:59 2009 +0000
+++ b/src/html.cc	Mon Mar 02 16:12:12 2009 +0100
@@ -1793,11 +1793,8 @@
 
    textblock->addParbreak (5, html->styleEngine->wordStyle ());
 
-   /* The bullet will be assigned the current list style, which should
-    * be "disc" by default, but may in very weird pages be different.
-    * Anyway, there should be no harm. */
    bullet = new Bullet();
-   textblock->addWidget(bullet, html->styleEngine->style ());
+   textblock->addWidget(bullet, html->styleEngine->wordStyle ());
    textblock->addSpace(html->styleEngine->wordStyle ());
 
    if (tolower(tag[1]) == 'i') {