OSDN Git Service

update iteratetable wiki command.
authorvisor <visor@users.sourceforge.jp>
Sat, 16 May 2015 12:06:39 +0000 (21:06 +0900)
committervisor <visor@users.sourceforge.jp>
Sat, 16 May 2015 12:06:39 +0000 (21:06 +0900)
wiki/wikicmd.cc

index 11b4227..5c930b1 100644 (file)
@@ -319,7 +319,9 @@ void  wc_dotable (WikiLine* wl, WikiFormat* wiki) {
        vval = clipWhite (v[1]->textOut (wiki));
     s = clipWhite (args[1]->textOut (wiki));
     tbl = wiki->getVar (s);
-    if (! isTable (tbl ())) {
+    if (isNil (tbl ())) {
+       return;
+    } else if (! isTable (tbl ())) {
        wiki->errorMsg.append (CharConst ("$iteratetable: bad value type.\n"));
        return;
     }