[drraw-users] Howto stack a CDEF on a DEF

Christophe Kalt kalt at taranis.org
Fri May 25 07:40:23 EDT 2007


On May 25, Ingo Lantschner wrote:
| Unfortunately there is no possibility to check "Stacking" for a CDEF  
| - at least not in version 2.2a3. Any idea?

It's a bug with 2.2a3, if you check the archives, you'll i've
been promising 2.2a4 for a while now.  In the meantime, the
attached diff should do :-)

Christophe
-------------- next part --------------
Index: drraw.cgi
===================================================================
RCS file: /home/cvs/drraw/drraw.cgi,v
retrieving revision 1.218
retrieving revision 1.219
diff -u -r1.218 -r1.219
--- drraw.cgi	8 Mar 2007 01:59:29 -0000	1.218
+++ drraw.cgi	11 Mar 2007 21:13:33 -0000	1.219
@@ -3136,7 +3136,8 @@
                             -values=>[@gt],
                             -default=>param("${ds}_Type"),
                             -onchange=>"TypeCB(this.value, \"${ds}\")"),
-                 ( $RRDs::VERSION >= 1.2 && $type eq 'ds' ) ?
+                 ( $RRDs::VERSION >= 1.2
+                   && ( $type eq 'ds' || $type eq 'def' ) ) ?
                  checkbox(-id=>"${ds}_STACK", -name=>"${ds}_STACK",
                           -title=>'Whether to stack this element on top of the previous one',
                           -label=>'', -value=>'Y') : '',


More information about the drraw-users mailing list