View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000393 | context | public | 2010-05-12 23:13 | 2012-12-10 12:13 | |
Reporter | mvid | Assigned To | Hans Hagen | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | x86_64 | OS | Mac OS X | OS Version | 10.6.3 |
Summary | 0000393: pdfboolean function always returns true if default is true | ||||
Description | in lpdf-ini.lua local function pdfboolean(b,default) if ((type(b) == "boolean") and b) or default then return p_true else return p_false end end results in p_true if default is true and b is false - that is at least highly counterintuitive feature and may be a big bad bug. | ||||
Steps To Reproduce | call from lua code pdfboolean(false,true) and see the result | ||||
Tags | No tags attached. | ||||
|
print(pdfboolean(false),pdfboolean(false,false),pdfboolean(false,true)) print(pdfboolean(true),pdfboolean(true,false),pdfboolean(true,true)) print(pdfboolean(nil,true),pdfboolean(nil,false)) false false false true true true true false |
Date Modified | Username | Field | Change |
---|---|---|---|
2010-05-12 23:13 | mvid | New Issue | |
2010-05-13 11:16 | Hans Hagen | Assigned To | => Hans Hagen |
2010-05-13 11:16 | Hans Hagen | Status | new => confirmed |
2010-05-13 11:16 | Hans Hagen | Note Added: 0000539 | |
2010-05-13 11:16 | Hans Hagen | Status | confirmed => resolved |
2010-05-13 11:16 | Hans Hagen | Resolution | open => fixed |
2012-12-10 12:13 | Taco | Status | resolved => closed |