summaryrefslogtreecommitdiff
path: root/dw/fltkui.cc
diff options
context:
space:
mode:
authorjcid <devnull@localhost>2008-10-05 21:04:58 +0200
committerjcid <devnull@localhost>2008-10-05 21:04:58 +0200
commit8c96f970b882cd9509539d393ec0a7c2259a87ea (patch)
treec429482d8b15a667b5eebe19646770541cfb1120 /dw/fltkui.cc
parent08d630de498346b85ab160742ace332692e3dd73 (diff)
- Improvement for the radio/check buttons size patch.
Diffstat (limited to 'dw/fltkui.cc')
-rw-r--r--dw/fltkui.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/dw/fltkui.cc b/dw/fltkui.cc
index 7b867797..9255d7d2 100644
--- a/dw/fltkui.cc
+++ b/dw/fltkui.cc
@@ -678,7 +678,8 @@ template <class I>
template <class I>
void FltkToggleButtonResource<I>::sizeRequest (core::Requisition *requisition)
{
- FltkFont *font = getFont();
+ FltkFont *font = (FltkFont *)
+ (this->FltkResource::style ? this->FltkResource::style->font : NULL);
if (font) {
::fltk::setfont(font->font, font->size);