From 219fc782263521883dc3aacade27306ddb6b5294 Mon Sep 17 00:00:00 2001 From: Rolf Ahrenberg Date: Sun, 23 Nov 2008 02:01:27 +0200 Subject: [PATCH] Fixed a crash. --- femonosd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/femonosd.c b/femonosd.c index 75d4bab..681da29 100644 --- a/femonosd.c +++ b/femonosd.c @@ -147,8 +147,6 @@ cFemonOsd::cFemonOsd() { Dprintf("%s()\n", __PRETTY_FUNCTION__); m_SvdrpConnection.handle = -1; - if (femonConfig.osdheight < (OSDSTATUSHEIGHT + OSDROWHEIGHT + OSDSTATUSHEIGHT)) - femonConfig.osdheight = (OSDSTATUSHEIGHT + OSDROWHEIGHT + OSDSTATUSHEIGHT); if (Setup.UseSmallFont == 0) { // Dirty hack to force the small fonts... Setup.UseSmallFont = 1; @@ -157,6 +155,8 @@ cFemonOsd::cFemonOsd() } else m_Font = cFont::GetFont(fontSml); + if (OSDHEIGHT < (OSDINFOHEIGHT + OSDROWHEIGHT + OSDSTATUSHEIGHT)) + OSDHEIGHT = (OSDINFOHEIGHT + OSDROWHEIGHT + OSDSTATUSHEIGHT); } cFemonOsd::~cFemonOsd(void)