|
|
@ -786,14 +786,12 @@ var ButtonWidgetAnnotation = (function ButtonWidgetAnnotationClosure() { |
|
|
|
// The parent field's `V` entry holds a `Name` object with the appearance
|
|
|
|
// The parent field's `V` entry holds a `Name` object with the appearance
|
|
|
|
// state of whichever child field is currently in the "on" state.
|
|
|
|
// state of whichever child field is currently in the "on" state.
|
|
|
|
var fieldParent = params.dict.get('Parent'); |
|
|
|
var fieldParent = params.dict.get('Parent'); |
|
|
|
if (!isDict(fieldParent) || !fieldParent.has('V')) { |
|
|
|
if (isDict(fieldParent) && fieldParent.has('V')) { |
|
|
|
return; |
|
|
|
var fieldParentValue = fieldParent.get('V'); |
|
|
|
} |
|
|
|
if (isName(fieldParentValue)) { |
|
|
|
var fieldParentValue = fieldParent.get('V'); |
|
|
|
this.data.fieldValue = fieldParentValue.name; |
|
|
|
if (!isName(fieldParentValue)) { |
|
|
|
} |
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
this.data.fieldValue = fieldParentValue.name; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// The button's value corresponds to its appearance state.
|
|
|
|
// The button's value corresponds to its appearance state.
|
|
|
|
var appearanceStates = params.dict.get('AP'); |
|
|
|
var appearanceStates = params.dict.get('AP'); |
|
|
|