diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-10-27 00:13:42 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-10-27 00:13:42 +0300 |
commit | f09ab3acb547b786289cd78b51577df6ef669fc6 (patch) | |
tree | e610bd6251e6105f117db9ed80481ce223e050ce /src/gui/widgets | |
parent | 75a80fdfdce4be53ce7d7b1d02400d3f79a144c0 (diff) | |
download | manaplus-f09ab3acb547b786289cd78b51577df6ef669fc6.tar.gz manaplus-f09ab3acb547b786289cd78b51577df6ef669fc6.tar.bz2 manaplus-f09ab3acb547b786289cd78b51577df6ef669fc6.tar.xz manaplus-f09ab3acb547b786289cd78b51577df6ef669fc6.zip |
Fix code style.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r-- | src/gui/widgets/tabbedarea.cpp | 4 |
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); |