diff --git a/src/gui/pluginlist.cpp b/src/gui/pluginlist.cpp index 879b2cb2b..41e6eece0 100644 --- a/src/gui/pluginlist.cpp +++ b/src/gui/pluginlist.cpp @@ -324,7 +324,10 @@ void CPluginList::paint() width = w_max( 500, 0 ); height = h_max( 526, 50 ); // 2*25 pixel frei listmaxshow = (height-theight-0)/fheight; - height = theight+0+listmaxshow*fheight; // recalc height + int multiplicator = pluginlist.size(); + if (listmaxshow < pluginlist.size()) + multiplicator = listmaxshow; + height = theight+0+multiplicator*fheight; // recalc height x=getScreenStartX( width ); y=getScreenStartY( height );