[mythtv] [patch]Fix display of a singe-item menu on the LCD
Leo Weppelman
leo at wau.mis.ah.nl
Tue Oct 12 20:19:18 UTC 2004
When trying to display a menu containing a single item on the LCD,
you are faced with a blank LCD. The attached patch fixes this.
Leo.
-------------- next part --------------
Index: lcddevice.cpp
===================================================================
RCS file: /var/lib/mythcvs/mythtv/libs/libmyth/lcddevice.cpp,v
retrieving revision 1.31
diff -u -r1.31 lcddevice.cpp
--- lcddevice.cpp 19 Aug 2004 01:36:30 -0000 1.31
+++ lcddevice.cpp 12 Oct 2004 20:08:03 -0000
@@ -879,7 +879,7 @@
// Back up one if were at the end so the last item shows up at the bottom
// of the display
- if (counter == it.count())
+ if (counter == it.count() && counter != 1)
--it;
counter = 1;
More information about the mythtv-dev
mailing list