summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-10-27 00:13:42 +0300
committerAndrei Karas <akaras@inbox.ru>2012-10-27 00:13:42 +0300
commitf09ab3acb547b786289cd78b51577df6ef669fc6 (patch)
treee610bd6251e6105f117db9ed80481ce223e050ce /src/gui
parent75a80fdfdce4be53ce7d7b1d02400d3f79a144c0 (diff)
downloadmanaplus-f09ab3acb547b786289cd78b51577df6ef669fc6.tar.gz
manaplus-f09ab3acb547b786289cd78b51577df6ef669fc6.tar.bz2
manaplus-f09ab3acb547b786289cd78b51577df6ef669fc6.tar.xz
manaplus-f09ab3acb547b786289cd78b51577df6ef669fc6.zip
Fix code style.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/widgets/tabbedarea.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/widgets/tabbedarea.cpp b/src/gui/widgets/tabbedarea.cpp
index 39dfade9a..0321e5044 100644
--- a/src/gui/widgets/tabbedarea.cpp
+++ b/src/gui/widgets/tabbedarea.cpp
@@ -365,7 +365,7 @@ void TabbedArea::widgetResized(const gcn::Event &event A_UNUSED)
gcn::Widget *const w = getCurrentWidget();
if (w)
{
- ScrollArea* scr = dynamic_cast<ScrollArea*>(w);
+ ScrollArea *const scr = dynamic_cast<ScrollArea *const>(w);
if (scr)
{
if (mFollowDownScroll && height != 0)
@@ -378,7 +378,7 @@ void TabbedArea::widgetResized(const gcn::Event &event A_UNUSED)
&& scr->getVerticalScrollAmount()
<= scr->getVerticalMaxScroll() + 2)
{
- int newScroll = scr->getVerticalScrollAmount()
+ const int newScroll = scr->getVerticalScrollAmount()
+ rect.height - height;
w->setSize(mWidgetContainer->getWidth() - frameSize,
mWidgetContainer->getHeight() - frameSize);