summaryrefslogtreecommitdiff
path: root/src/Fl_Help_View.cxx
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2005-09-13 08:43:28 +0000
committerMatthias Melcher <fltk@matthiasm.com>2005-09-13 08:43:28 +0000
commit02ab74fceee2c73a182ce32a94e3573c22d9d822 (patch)
treed4cf76b12301c56eb51ce7069f931d5d6d2a7308 /src/Fl_Help_View.cxx
parentc526a7ad2f4b31a6342edb888c8a1925365821ce (diff)
Fixed x-offset problem in Help_Widget (STR #998)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4566 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Help_View.cxx')
-rw-r--r--src/Fl_Help_View.cxx8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/Fl_Help_View.cxx b/src/Fl_Help_View.cxx
index 40ab5cef8..86e45fd3a 100644
--- a/src/Fl_Help_View.cxx
+++ b/src/Fl_Help_View.cxx
@@ -1291,8 +1291,14 @@ Fl_Help_View::format()
xx -= 4 * fsize;
block->h += fsize + 2;
}
- else if (strcasecmp(buf, "/TABLE") == 0)
+ else if (strcasecmp(buf, "/TABLE") == 0)
+ {
block->h += fsize + 2;
+ // the current block is *not* the table block, so the current xx is
+ // meaningless. Set it back to page x, so the next block will be aligned
+ // reasonably. This fails fro table-in-table html!
+ xx = 4;
+ }
else if (strcasecmp(buf, "/PRE") == 0)
{
pre = 0;