From 0848d92af1dc3f99009c5ab271b15c06663898c3 Mon Sep 17 00:00:00 2001 From: rubidium Date: Fri, 10 Dec 2010 17:33:50 +0000 Subject: (svn r21447) -Add: accessor function to get the direction of a scrollbar --- src/widget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/widget.cpp') diff --git a/src/widget.cpp b/src/widget.cpp index 4831284fb..59aff4fcc 100644 --- a/src/widget.cpp +++ b/src/widget.cpp @@ -1624,7 +1624,7 @@ int Scrollbar::GetScrolledRowFromWidget(int clickpos, const Window * const w, in void Scrollbar::SetCapacityFromWidget(Window *w, int widget, int padding) { NWidgetBase *nwid = w->GetWidget(widget); - if (this->is_vertical) { + if (this->IsVertical()) { this->SetCapacity(((int)nwid->current_y - padding) / (int)nwid->resize_y); } else { this->SetCapacity(((int)nwid->current_x - padding) / (int)nwid->resize_x); -- cgit v1.2.3-54-g00ecf