From 8d760e9dfb07d13cae89910638deee8998620fa7 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Wed, 12 Feb 2014 09:24:37 +0100 Subject: [PATCH] pluginlist: simplify 06f7be9c17b51ce748e803e569423ccb47312bfb Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/565b62477b0069c54b6bcc6635fa80ab75a3ea78 Author: vanhofen Date: 2014-02-12 (Wed, 12 Feb 2014) Origin message was: ------------------ - pluginlist: simplify 06f7be9c17b51ce748e803e569423ccb47312bfb --- 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 );