diff options
author | louis <louis.braun@gmx.de> | 2013-06-10 23:03:58 +0200 |
---|---|---|
committer | louis <louis.braun@gmx.de> | 2013-06-10 23:03:58 +0200 |
commit | 82bfe44d8489ededeac2f3d11c3ed75f03657617 (patch) | |
tree | 19b6cf1fee87cc316e663fdfa0bb29169d71ccee | |
parent | e343ad6c98348d8ba9e2eb2448b0bc5b05223d5c (diff) | |
download | skin-nopacity-82bfe44d8489ededeac2f3d11c3ed75f03657617.tar.gz skin-nopacity-82bfe44d8489ededeac2f3d11c3ed75f03657617.tar.bz2 |
Fixed a bug if switching to a invalid channel
-rw-r--r-- | HISTORY | 3 | ||||
-rw-r--r-- | displaychannel.c | 2 | ||||
-rw-r--r-- | displaymenu.c | 1 |
3 files changed, 3 insertions, 3 deletions
@@ -217,4 +217,5 @@ Version 0.1.2 - Additional information in channels menu configurable: choice between transponder information and current schedule - Added optional dedicated status icons in channel display -- Added optional display of channel source information in channel display +- Added optional display of channel source information in channel display +- Fixed a bug if switching to a invalid channel diff --git a/displaychannel.c b/displaychannel.c index f237e3b..0d8208a 100644 --- a/displaychannel.c +++ b/displaychannel.c @@ -526,7 +526,7 @@ void cNopacityDisplayChannel::SetChannel(const cChannel *Channel, int Number) { } if (!groupSep) { - if (withInfo) { + if (withInfo && Channel) { if (config.symbolStyle == 0) { DrawIconMask(); DrawIcons(Channel); diff --git a/displaymenu.c b/displaymenu.c index d62416e..6add8b8 100644 --- a/displaymenu.c +++ b/displaymenu.c @@ -747,7 +747,6 @@ void cNopacityDisplayMenu::Flush(void) { initMenu = false; initial = false; osd->Flush(); - //esyslog("nopacity: scaling to x: %d, y: %d, width: %d, height: %d", videoWindowRect.X(), videoWindowRect.Y(), videoWindowRect.Width(), videoWindowRect.Height()); cDevice::PrimaryDevice()->ScaleVideo(videoWindowRect); } |