Patch by Vino Fernando Crescini <jcres...@cit.uws.edu.au>:
http://sources.debian.net/src/wmclock/1.0.14-6/debian/patches/fix_12_year_display.patch/

For more information, see:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=228985
---
 wmclock/wmclock.c | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/wmclock/wmclock.c b/wmclock/wmclock.c
index 9dfd287..d65e7e6 100644
--- a/wmclock/wmclock.c
+++ b/wmclock/wmclock.c
@@ -849,7 +849,14 @@ int main(int argc, char **argv)
 #endif /* !ONLY_SHAPED_WINDOW */
    for (i = 0; i < NUM_TIME_POSITIONS; i++)
     {
-       xPos[i] += enable12HourClock ? timePos24[i] : timePos12[i];
+      if (enable12HourClock && (!enableYearDisplay))
+       {
+         xPos[i] += timePos24[i];
+       }
+      else
+       {
+         xPos[i] += timePos12[i];
+       }
     }
    
    /* Open the display */
-- 
2.1.0


-- 
To unsubscribe, send mail to wmaker-dev-unsubscr...@lists.windowmaker.org.

Reply via email to