From b0d28814ecdd29d3f33ab926b3ff3c325675e3b2 Mon Sep 17 00:00:00 2001 From: Björn Steinbrink Date: Tue, 31 Jan 2006 02:55:26 +0000 Subject: Various small cleanups. --- src/gui/scrollarea.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/gui/scrollarea.cpp') diff --git a/src/gui/scrollarea.cpp b/src/gui/scrollarea.cpp index d1873cb5..7f39b5a8 100644 --- a/src/gui/scrollarea.cpp +++ b/src/gui/scrollarea.cpp @@ -199,7 +199,6 @@ void ScrollArea::draw(gcn::Graphics *graphics) if (mContent) { - gcn::Rectangle contdim = mContent->getDimension(); graphics->pushClipArea(getContentDimension()); if (mContent->getBorderSize() > 0) @@ -214,7 +213,7 @@ void ScrollArea::draw(gcn::Graphics *graphics) graphics->popClipArea(); } - graphics->pushClipArea(contdim); + graphics->pushClipArea(mContent->getDimension()); mContent->draw(graphics); graphics->popClipArea(); graphics->popClipArea(); -- cgit v1.2.3-70-g09d2