diff options
| author | bobzel <zzzman@gmail.com> | 2024-08-30 00:06:05 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2024-08-30 00:06:05 -0400 |
| commit | c36607691e0b7f5c04f3209a64958f5e51ddd785 (patch) | |
| tree | df990b3c2b89f70c595bc0fccc2e90ca3d21b267 | |
| parent | 9776e4584b61d3c67622d8ea1f2338a7dfbe857d (diff) | |
fixed linking text anchors to dall-e images
| -rw-r--r-- | src/client/views/pdf/GPTPopup/GPTPopup.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/pdf/GPTPopup/GPTPopup.tsx b/src/client/views/pdf/GPTPopup/GPTPopup.tsx index 0920b1bd3..a37e73e27 100644 --- a/src/client/views/pdf/GPTPopup/GPTPopup.tsx +++ b/src/client/views/pdf/GPTPopup/GPTPopup.tsx @@ -268,7 +268,7 @@ export class GPTPopup extends ObservableReactComponent<GPTPopupProps> { * Transfers the image urls to actual image docs */ private transferToImage = (source: string) => { - const textAnchor = this.imgTargetDoc; + const textAnchor = this.textAnchor ?? this.imgTargetDoc; if (!textAnchor) return; const newDoc = Docs.Create.ImageDocument(source, { x: NumCast(textAnchor.x) + NumCast(textAnchor._width) + 10, |
