diff options
author | monikahedman <monika_hedman@brown.edu> | 2019-07-05 17:33:58 -0400 |
---|---|---|
committer | monikahedman <monika_hedman@brown.edu> | 2019-07-05 17:33:58 -0400 |
commit | ad0152df3d50d18d760570930db4da5aae849d2f (patch) | |
tree | ed63ec27084b975f9879844239c8c5d5f83f782e /src | |
parent | b8e41f32eba62a3e569e82e2908f4ff0c1e29f6c (diff) |
small fixes
Diffstat (limited to 'src')
-rw-r--r-- | src/client/views/pdf/PDFViewer.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/views/pdf/PDFViewer.tsx b/src/client/views/pdf/PDFViewer.tsx index 8af29110f..581237287 100644 --- a/src/client/views/pdf/PDFViewer.tsx +++ b/src/client/views/pdf/PDFViewer.tsx @@ -229,12 +229,13 @@ export class Viewer extends React.Component<IViewerProps> { } } + @action makeAnnotationDocument = (sourceDoc: Doc | undefined, s: number, color: string): Doc => { let annoDocs: Doc[] = []; let mainAnnoDoc = Docs.CreateInstance(new Doc(), "", {}); mainAnnoDoc.title = "Annotation on " + StrCast(this.props.parent.Document.title); - mainAnnoDoc.pdfDoc = this.props.parent.Document; + mainAnnoDoc.pdfDoc = this.props.parent.props.Document; let minY = Number.MAX_VALUE; this._savedAnnotations.forEach((key: number, value: HTMLDivElement[]) => { for (let anno of value) { |