1
This commit is contained in:
parent
bc3b2825a6
commit
562242ca3f
@ -35,6 +35,9 @@ func (this *XObject) Size() int {
|
||||
if (this._type == XOT_ARRAY) {
|
||||
array := this._val.([]*XObject)
|
||||
return len(array)
|
||||
} else if (this._type == XOT_OBJECT) {
|
||||
object := this._val.(map[string]*XObject)
|
||||
return len(object)
|
||||
} else {
|
||||
panic("XObject.Size type error")
|
||||
return 0
|
||||
|
Loading…
x
Reference in New Issue
Block a user