summaryrefslogtreecommitdiff
path: root/FL
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2009-04-03 07:31:51 +0000
committerAlbrecht Schlosser <albrechts.fltk@online.de>2009-04-03 07:31:51 +0000
commit6534c6675a44784ba84eeeddc57fb4044fe0dce5 (patch)
tree1c8a240644f3ef1b70569cd1a806c5e84577b526 /FL
parent37c833ba1f5d3e45fa760deabbc057ffb0802966 (diff)
STR #2184: bug in Fl_Help_Viewer font stack
src/Fl_Help_View.cxx: removed double pushfont() for color changes FL/Fl_Help_View.H: fixed Fl_Help_Font_Stack::pop() to set the correct font git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6741 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL')
-rw-r--r--FL/Fl_Help_View.H2
1 files changed, 1 insertions, 1 deletions
diff --git a/FL/Fl_Help_View.H b/FL/Fl_Help_View.H
index 24f20d3c4..07235c5a9 100644
--- a/FL/Fl_Help_View.H
+++ b/FL/Fl_Help_View.H
@@ -123,9 +123,9 @@ struct Fl_Help_Font_Stack {
}
/** Pops from the stack the font style triplet and calls fl_font() & fl_color() adequately */
void pop(Fl_Font &f, Fl_Fontsize &s, Fl_Color &c) {
+ if (nfonts_ > 0) nfonts_ --;
top(f, s, c);
fl_font(f, s); fl_color(c);
- if (nfonts_ > 0) nfonts_ --;
}
/** Gets the current count of font style elts in the stack */
size_t count() const {return nfonts_;} /// Gets the current number of fonts in the stack