View Issue Details

IDProjectCategoryView StatusLast Update
0000393contextpublic2012-12-10 12:13
Reportermvid Assigned ToHans Hagen  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Platformx86_64OSMac OS XOS Version10.6.3
Summary0000393: pdfboolean function always returns true if default is true
Descriptionin 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 Reproducecall from lua code
pdfboolean(false,true)
and see the result
TagsNo tags attached.

Activities

Hans Hagen

2010-05-13 11:16

manager   ~0000539

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

Issue History

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