From: Florent Bruneau
Date: Sun, 27 Jul 2008 13:25:13 +0000 (+0200)
Subject: Off-by-one in trombi view.
X-Git-Tag: xorg/0.9.17~21
X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=81bb9177e5d7eb74f8abeda97f1b5ec3b760b513;p=platal.git
Off-by-one in trombi view.
Signed-off-by: Florent Bruneau
---
diff --git a/templates/include/plview.trombi.tpl b/templates/include/plview.trombi.tpl
index d0db912..e09cab6 100644
--- a/templates/include/plview.trombi.tpl
+++ b/templates/include/plview.trombi.tpl
@@ -26,8 +26,8 @@
{else}
- {section name=trombi loop=$set start=1}
- {if $smarty.section.trombi.iteration % 3 == 1}
+ {section name=trombi loop=$set start=0}
+ {if $smarty.section.trombi.index % 3 == 1}
|
- {elseif ($smarty.section.trombi.iteration % 3 == 0) && ($smarty.section.trombi.last)}
+ {elseif ($smarty.section.trombi.index % 3 == 0) && ($smarty.section.trombi.last)}
|