From 565b62477b0069c54b6bcc6635fa80ab75a3ea78 Mon Sep 17 00:00:00 2001 From: svenhoefer Date: Wed, 12 Feb 2014 09:24:37 +0100 Subject: [PATCH] - pluginlist: simplify b427c3d6a559c61285728b220982f1b288d6a9dd --- src/gui/pluginlist.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/gui/pluginlist.cpp b/src/gui/pluginlist.cpp index 41e6eece0..7291153f4 100644 --- a/src/gui/pluginlist.cpp +++ b/src/gui/pluginlist.cpp @@ -324,10 +324,9 @@ void CPluginList::paint() width = w_max( 500, 0 ); height = h_max( 526, 50 ); // 2*25 pixel frei listmaxshow = (height-theight-0)/fheight; - int multiplicator = pluginlist.size(); - if (listmaxshow < pluginlist.size()) - multiplicator = listmaxshow; - height = theight+0+multiplicator*fheight; // recalc height + if (pluginlist.size() < listmaxshow) + listmaxshow = pluginlist.size(); + height = theight+0+listmaxshow*fheight; // recalc height x=getScreenStartX( width ); y=getScreenStartY( height );