Add missing returns.

CCMAIL:notmart@gmail.com
This commit is contained in:
Eike Hein 2013-08-27 16:02:33 +02:00
parent 8c252e6c17
commit 915598dca2

View File

@ -165,9 +165,9 @@ void PanelView::setThickness(int value)
int PanelView::length() const
{
if (formFactor() == Plasma::Types::Vertical) {
config().readEntry<int>("length", screen()->size().height());
return config().readEntry<int>("length", screen()->size().height());
} else {
config().readEntry<int>("length", screen()->size().width());
return config().readEntry<int>("length", screen()->size().width());
}
}